#!/usr/local/bin/gnuplot -persist # set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "polygons_2" jsdir "." # set output 'polygons.2.js' unset border unset key set style line 101 linecolor rgb "forest-green" linewidth 1.000 dashtype solid pointtype 101 pointsize default set style line 102 linecolor rgb "goldenrod" linewidth 1.000 dashtype solid pointtype 102 pointsize default set object 1 polygon from 0.00000, 1.00000, 1.61803 to 1.00000, 1.61803, 0.00000 to -1.00000, 1.61803, 0.00000 to 0.00000, 1.00000, 1.61803 set object 1 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 1 border lt -1 set object 2 polygon from 0.00000, 1.00000, 1.61803 to -1.00000, 1.61803, 0.00000 to -1.61803, 0.00000, 1.00000 to 0.00000, 1.00000, 1.61803 set object 2 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 2 border lt -1 set object 3 polygon from 0.00000, 1.00000, 1.61803 to -1.61803, 0.00000, 1.00000 to 0.00000, -1.00000, 1.61803 to 0.00000, 1.00000, 1.61803 set object 3 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 3 border lt -1 set object 4 polygon from 0.00000, 1.00000, 1.61803 to 0.00000, -1.00000, 1.61803 to 1.61803, 0.00000, 1.00000 to 0.00000, 1.00000, 1.61803 set object 4 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 4 border lt -1 set object 5 polygon from 0.00000, 1.00000, 1.61803 to 1.61803, 0.00000, 1.00000 to 1.00000, 1.61803, 0.00000 to 0.00000, 1.00000, 1.61803 set object 5 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 5 border lt -1 set object 6 polygon from 0.00000, 1.00000, -1.61803 to 1.00000, 1.61803, 0.00000 to 1.61803, 0.00000, -1.00000 to 0.00000, 1.00000, -1.61803 set object 6 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 6 border lt -1 set object 7 polygon from 0.00000, 1.00000, -1.61803 to 1.61803, 0.00000, -1.00000 to 0.00000, -1.00000, -1.61803 to 0.00000, 1.00000, -1.61803 set object 7 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 7 border lt -1 set object 8 polygon from 0.00000, 1.00000, -1.61803 to 0.00000, -1.00000, -1.61803 to -1.61803, 0.00000, -1.00000 to 0.00000, 1.00000, -1.61803 set object 8 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 8 border lt -1 set object 9 polygon from 0.00000, 1.00000, -1.61803 to -1.61803, 0.00000, -1.00000 to -1.00000, 1.61803, 0.00000 to 0.00000, 1.00000, -1.61803 set object 9 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 9 border lt -1 set object 10 polygon from 0.00000, 1.00000, -1.61803 to -1.00000, 1.61803, 0.00000 to 1.00000, 1.61803, 0.00000 to 0.00000, 1.00000, -1.61803 set object 10 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 10 border lt -1 set object 11 polygon from -1.00000, -1.61803, 0.00000 to 0.00000, -1.00000, 1.61803 to -1.61803, 0.00000, 1.00000 to -1.00000, -1.61803, 0.00000 set object 11 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 11 border lt -1 set object 12 polygon from -1.00000, -1.61803, 0.00000 to -1.61803, 0.00000, 1.00000 to -1.61803, 0.00000, -1.00000 to -1.00000, -1.61803, 0.00000 set object 12 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 12 border lt -1 set object 13 polygon from -1.00000, -1.61803, 0.00000 to -1.61803, 0.00000, -1.00000 to 0.00000, -1.00000, -1.61803 to -1.00000, -1.61803, 0.00000 set object 13 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 13 border lt -1 set object 14 polygon from -1.00000, -1.61803, 0.00000 to 0.00000, -1.00000, -1.61803 to 1.00000, -1.61803, 0.00000 to -1.00000, -1.61803, 0.00000 set object 14 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 14 border lt -1 set object 15 polygon from -1.00000, -1.61803, 0.00000 to 1.00000, -1.61803, 0.00000 to 0.00000, -1.00000, 1.61803 to -1.00000, -1.61803, 0.00000 set object 15 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 15 border lt -1 set object 16 polygon from -1.00000, 1.61803, 0.00000 to -1.61803, 0.00000, -1.00000 to -1.61803, 0.00000, 1.00000 to -1.00000, 1.61803, 0.00000 set object 16 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 16 border lt -1 set object 17 polygon from 1.00000, -1.61803, 0.00000 to 0.00000, -1.00000, -1.61803 to 1.61803, 0.00000, -1.00000 to 1.00000, -1.61803, 0.00000 set object 17 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 17 border lt -1 set object 18 polygon from 1.00000, 1.61803, 0.00000 to 1.61803, 0.00000, 1.00000 to 1.61803, 0.00000, -1.00000 to 1.00000, 1.61803, 0.00000 set object 18 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 18 border lt -1 set object 19 polygon from 1.61803, 0.00000, 1.00000 to 1.00000, -1.61803, 0.00000 to 1.61803, 0.00000, -1.00000 to 1.61803, 0.00000, 1.00000 set object 19 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 19 border lt -1 set object 20 polygon from 1.61803, 0.00000, 1.00000 to 0.00000, -1.00000, 1.61803 to 1.00000, -1.61803, 0.00000 to 1.61803, 0.00000, 1.00000 set object 20 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 20 border lt -1 set object 21 polygon set object 21 depthorder clip lw 1.0 dashtype solid fc linestyle 101 fillstyle transparent pattern 21 border set view 30, 30, 1.5, 1 set view equal xyz set style data lines unset xtics unset ytics unset ztics unset cbtics unset rtics set title "2-sided coloring\ngreen outside, yellow inside" set xrange [ -2.00000 : 2.00000 ] noreverse nowriteback set x2range [ * : * ] noreverse writeback set yrange [ -2.00000 : 2.00000 ] noreverse nowriteback set y2range [ * : * ] noreverse writeback set zrange [ -2.00000 : 2.00000 ] noreverse nowriteback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set pm3d depthorder set pm3d interpolate 1,1 flush begin noftriangles border linecolor rgb "black" linewidth 2.000 dashtype solid corners2color mean set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault phi = 1.61803398874989 n = 21 splot -10