max v2; #N vpatcher 1 44 777 711; #P window setfont Times 10.; #P window linecount 3; #P comment 105 310 108 1310730 draw a line from the current pen location to the specified new location; #P comment 105 228 140 1310730 the first item in the list goes in place of \$1 \, and the second item in the list goes in place of item 2; #P window linecount 1; #P comment 201 190 26 1310730 vert.; #P comment 105 190 33 1310730 horiz.; #P window linecount 5; #P comment 246 191 107 1310730 pack the horizontal pixel coordinate and the vertical coordinate together as a 2-item (space-separated) list; #P window linecount 3; #P comment 105 128 107 1310730 choose at random one of X possible numbers (from 0 to X-1); #P window linecount 1; #P comment 419 593 49 1310730 (320 \, 240); #P comment 75 355 24 1310730 (0 \, 0); #P comment 140 348 239 1310730 the size of this LCD has been set to 320x240 pixels; #P window linecount 3; #P comment 208 78 102 1310730 initializes the metro time interval to be 200 ms (5 ticks per second); #P window linecount 1; #P comment 543 227 128 1310730 bang whenever the count is 0; #P window linecount 2; #P comment 367 195 163 1310730 set the "pen" to a color chosen randomly from a palette of 256 colors; #P window linecount 1; #P comment 543 252 128 1310730 clear the contents of the LCD; #P comment 544 156 174 1310730 erase all lines after every 300 lines drawn; #P window setfont Times 18.; #P window linecount 2; #P comment 413 227 81 1310738 line width (in pixels); #P window setfont Times 10.; #P comment 145 601 239 1310730 this is a "LCD" object \, which provides an onscreen space where you can draw graphics \, pictures \, text \, etc.; #P window setfont Times 18.; #P window linecount 1; #P comment 270 57 209 1310738 time interval in milliseconds; #P comment 62 36 122 1310738 Start/Stop (1/0); #P window setfont "Fixedwidth Serif" 18.; #P number 378 238 35 18 1 0 1 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 537 202 98 1441810 select 0; #N counter 0 299; #X flags 0 0; #P newobj 537 170 154 1441810 counter 0 299; #P message 537 266 65 1441810 clear; #P message 99 266 142 1441810 lineto \$1 \$2; #P newex 99 204 133 1441810 pack; #P message 263 266 98 1441810 color \$1; #P newex 360 166 120 1441810 random 256; #P message 378 266 153 1441810 pensize \$1 \$1; #P user lcd 99 362 320 240 0 1 0 0 0; #P number 198 56 72 18 0 0 1 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 235 166 120 1441810 random 240; #P newex 99 166 120 1441810 random 320; #P toggle 99 56 15 0; #P newex 99 84 109 1441810 metro 200; #P window setfont Times 18.; #P comment 264 9 242 1310738 Draw random multicolored lines; #P connect 2 0 1 0; #P connect 1 0 3 0; #P connect 3 0 10 0; #P connect 10 0 11 0; #P fasten 12 0 6 0 542 309 104 309; #P fasten 9 0 6 0 268 295 104 295; #P connect 11 0 6 0; #P fasten 7 0 6 0 383 302 104 302; #P connect 5 0 1 1; #P connect 4 0 10 1; #P fasten 1 0 4 0 104 123 240 123; #P fasten 8 0 9 0 365 260 268 260; #P fasten 1 0 8 0 104 123 365 123; #P connect 15 0 7 0; #P fasten 1 0 13 0 104 123 542 123; #P connect 13 0 14 0; #P connect 14 0 12 0; #P pop;