Skip to content

Instantly share code, notes, and snippets.

View pr1ntf's full-sized avatar

Trent pr1ntf

View GitHub Profile
@pr1ntf
pr1ntf / drugwars.txt
Last active August 29, 2015 13:56 — forked from mattmanning/drugwars.txt
Clean up for TI-84 Plus debugging.
Lbl G
ClrHome
Disp " J.M.'S DRUGWAR"," SIMULATION",""," VERSION 2.00",""," JUST SAY NO."
2000→Z
5000→Y
0→V
100→K
1→B
2→N
0→I
,,,,;-;,,
,,;#################,
,########################,
,###########################>
,###############################,
,##################################>
,####################################>
,######################"^`,````$#######,
,####################%,;#####%##;"$#####>
$#################"`,##$%%%$$ `%#,$#####> ,;#####,,,
@size = (1920,1080);
@center = (-.743653135,.131826563);
$zoom = .000014628;
$max_it = 700;
open U, "|convert -size $size[0]x$size[1] -depth 8 gray:- mandel.png";
for $py (0..$size[1]-1) {
$y0 = $center[1] + ($py/($size[0]-1) - .5) * $zoom;
for $px (0..$size[0]-1) {
$x0 = $center[0] + ($px/($size[0]-1) - .5) * $zoom;