Testing latest pari + WASM + node.js... and it works?! Wow.
1/* Copyright (C) 2017 The PARI group. 2 3This file is part of the PARI/GP package. 4 5This program is free software; you can redistribute it and/or modify 6it under the terms of the GNU General Public License as published by 7the Free Software Foundation; either version 2 of the License, or 8(at your option) any later version. 9 10This program is distributed in the hope that it will be useful, 11but WITHOUT ANY WARRANTY; without even the implied warranty of 12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13GNU General Public License for more details. 14 15You should have received a copy of the GNU General Public License along 16with this program; if not, write to the Free Software Foundation, Inc., 1751 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18*/ 19#include "pari.h" 20#include "rect.h" 21void 22gp_get_plot(PARI_plot *T) 23{ 24 T->width = 480; 25 T->height = 320; 26 T->fheight = 12; 27 T->fwidth = 6; 28 T->hunit = 3; 29 T->vunit = 3; 30 gp_get_ploth_default_sizes(T); 31 T->dwidth = 0; 32 T->dheight = 0; 33 T->draw = NULL; 34} 35 36