digital literacy for everyone


[lit]

[generate-title]

[lit] fig is a multi-purpose educational language-- originally designed to offer 16 colours in the term window or vt, with a compatible 16-colour palette in a graphics window. [img]https://ia601501.us.archive.org/17/items/fig_textmode_screencaps/asciimint.fig.png[img] [fig] #### license: creative commons cc0 1.0 (public domain) #### http://creativecommons.org/publicdomain/zero/1.0/ c = 0 textmode for radius (1, 200, .157) x = 320 y = 240 for b (-3.14, 3.14, .314) d = c plus .157 : swap d, c xc = b plus c : cos yc = b plus c : sin col = xc times radius plus x row = yc times radius plus y colr = b times 3 : mod 2 : int : times 11 plus 4 col2 = col divby 8 : int : plus 34 row2 = row divby 16 minus 2 : int : plus 1 xx = col2 minus 1 x2 = col2 minus 0 #z line(xx, row2, x2, row2), colr z pset xx, row2, colr now xx plus 1 swap now xx z pset xx, row2, colr next next p : colortext 7 : locate 1, 1 #######################
fig main page: [url]https://codeinfig.neocities.org/fig/index.html[url] home: [lit]https://codeinfig.neocities.org[lit]