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
|
|
|
|
:~ 'back'^[?~(. ~ s+.)]:p.q.stye
|
|
|
|
'fore'^[?~(. ~ s+.)]:q.q.stye
|
|
|
|
'deco'^a+(turn ~(tap in p.stye) |=(d=deco ?~(d ~ s+d)))
|
|
|
|
==
|
|
|
|
==
|
|
|
|
==
|
|
|
|
--
|
|
|
|
--
|