2020-10-24 02:25:44 +03:00
|
|
|
:: blit: runtime blit structure
|
|
|
|
::
|
2020-11-06 15:47:22 +03:00
|
|
|
/+ base64
|
|
|
|
::
|
2020-10-24 02:25:44 +03:00
|
|
|
|_ =blit:dill
|
|
|
|
++ grad %noun
|
|
|
|
:: +grab: convert from
|
|
|
|
::
|
|
|
|
++ grab
|
|
|
|
|%
|
|
|
|
++ noun blit:dill
|
|
|
|
--
|
|
|
|
:: +grow: convert to
|
|
|
|
::
|
|
|
|
++ grow
|
|
|
|
|%
|
|
|
|
++ noun blit
|
|
|
|
++ json
|
|
|
|
^- ^json
|
|
|
|
=, enjs:format
|
|
|
|
%+ frond -.blit
|
|
|
|
?- -.blit
|
|
|
|
%bel b+&
|
|
|
|
%clr b+&
|
|
|
|
%hop (numb p.blit)
|
2020-11-10 22:42:28 +03:00
|
|
|
%lin a+(turn p.blit |=(c=@c s+(tuft c)))
|
2020-10-24 02:25:44 +03:00
|
|
|
%mor b+&
|
|
|
|
%url s+p.blit
|
2020-11-06 15:47:22 +03:00
|
|
|
::
|
|
|
|
%sag
|
|
|
|
%- pairs
|
|
|
|
:~ 'path'^(path p.blit)
|
|
|
|
'file'^s+(en:base64 (as-octs:mimes:html (jam q.blit)))
|
|
|
|
==
|
|
|
|
::
|
|
|
|
%sav
|
|
|
|
%- pairs
|
|
|
|
:~ 'path'^(path p.blit)
|
|
|
|
'file'^s+(en:base64 (as-octs:mimes:html q.blit))
|
|
|
|
==
|
2020-10-24 02:25:44 +03:00
|
|
|
::
|
|
|
|
%klr
|
|
|
|
:- %a
|
|
|
|
%+ turn p.blit
|
|
|
|
|= [=stye text=(list @c)]
|
|
|
|
%- pairs
|
2020-11-10 22:42:28 +03:00
|
|
|
:~ 'text'^a+(turn text |=(c=@c s+(tuft c)))
|
2020-10-24 02:25:44 +03:00
|
|
|
::
|
|
|
|
:- 'stye'
|
|
|
|
%- pairs
|
2020-12-01 21:32:29 +03:00
|
|
|
|^ :~ 'back'^(color p.q.stye)
|
|
|
|
'fore'^(color q.q.stye)
|
|
|
|
'deco'^a+(turn ~(tap in p.stye) |=(d=deco ?~(d ~ s+d)))
|
|
|
|
==
|
|
|
|
++ color
|
|
|
|
|= =tint
|
|
|
|
?@ tint ?~(tint ~ s+tint)
|
|
|
|
s+(crip ((x-co:co 6) (rep 3 ~[b g r]:tint)))
|
|
|
|
--
|
2020-10-24 02:25:44 +03:00
|
|
|
==
|
|
|
|
==
|
|
|
|
--
|
|
|
|
--
|