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]circle.fig.png[img]
[fig]
# 2019 mn
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
for p -3.14159 3.14159 .05
#.005
r 100
lx 170
ly 170
x p cos times r int plus lx prints
now " " prints
y p sin times r int plus ly prints
now " " prints
now pset x y 15
next
now lineinput
the program also outputs the following data to the term window:
71 170 71 166 71 161 72 156 72 151 74 146 75 141 77 136 78 132 80 127 83 123 85 118 88 114 91 110 94 106 97 102 101 99 105 95 108 92 112 89 116 86 121 84 125 81 130 79 134 77 139 76 144 74 149 73 154 72 158 71 163 71 168 71 172 71 177 71 182 71 187 72 192 73 197 74 202 76 207 78 211 80 216 82 220 84 224 87 228 90 232 93 236 96 240 99 243 103 247 107 250 111 253 115 255 119 258 123 260 128 262 132 264 137 265 142 267 147 268 151 268 156 269 161 269 166 269 170 269 175 269 180 268 185 267 190 266 195 265 200 263 205 261 209 259 214 257 218 254 222 252 227 249 231 245 235 242 238 239 242 235 245 231 248 227 251 223 254 219 257 214 259 210 261 205 263 200 265 195 266 191 267 186 268 181 269 176 269 171 269 167 269 162 269 157 269 152 268 147 267 142 265 137 264 133 262 128 260 124 258 119 255 115 253 111 250 107 247 103 244 100 240 96 236 93 233 90 229 87 225 84 220 82 216 80 211 78 207 76 202 74 197 73 193 72 188 71 183 71 178 71 173
those are the coordinates for the dots shown in the picture.
this is not a default; the data is written to the term by the "prints" commands found on lines 11 and 13 of the program.
home: [lit]https://freesoftwareresistance.neocities.org[lit]