~rabbits/oekaki

dbf3dffeaa4065852f2336334a5724233043a743 — neauoire 5 months ago 4479f3d
Support soft-reboot
1 files changed, 10 insertions(+), 2 deletions(-)

M src/oekaki.tal
M src/oekaki.tal => src/oekaki.tal +10 -2
@@ 34,18 34,25 @@
	[ LIT2 03 -brush/color ] STZ
	[ LIT2 01 -brush/blend ] STZ
	[ LIT2 00 -brush/tool ] STZ
	update-spray .Console/type DEI ?{
	[ LIT2 06 -brush/shape ] STZ
	update-spray
	( soft reboot ) .src/buf LDZ ?on-soft
	.Console/type DEI ?{
		;dict/default ;src/buf <scpy>
		;src/buf <open-file>
		BRK }
	BRK

@on-soft ( -> )
	;src/buf <open-file>
	BRK

@meta
	00
	( name ) "Oekaki 0a
	( desc ) "Drawing 20 "Program 0a
	( auth ) "By 20 "Devine 20 "Lu 20 "Linvega 0a
	( date ) "22 20 "Aug 20 "2023 $1
	( date ) "22 20 "Sep 20 "3 "2023 $1
	( exts ) 00

(


@@ 81,6 88,7 @@
	DUP [ LIT "d ] NEQ ?{ #01 <set-tool> }
	DUP [ LIT "f ] NEQ ?{ #02 <set-tool> }
	DUP [ LIT "h ] NEQ ?{ <flip-horizontal> }
	DUP #08 NEQ ?{ <make-file> }
	DUP #09 NEQ ?{ <toggle-menu> }
	DUP #1b NEQ ?{ <center> }
	POP BRK