mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 04:52:06 +03:00
01de5a06b0
%rez has always used "width & height". Certainly, "x & y" is more standard than "row & column". As such, we settle on making %hop and %hit respect the more natural ordering. This change is safe because these interfaces haven't made it to livenet yet.
30 lines
677 B
Plaintext
30 lines
677 B
Plaintext
::
|
|
:::: /hoon/blit/dill/mar
|
|
::
|
|
/? 310
|
|
/- sole
|
|
=, sole
|
|
=, enjs:format
|
|
|_ dib=dill-blit:dill
|
|
++ grad %noun
|
|
::
|
|
++ grab :: convert from
|
|
|%
|
|
++ noun dill-blit:dill :: clam from %noun
|
|
--
|
|
++ grow
|
|
|%
|
|
++ noun dib
|
|
++ json
|
|
^- ^json
|
|
?+ -.dib ~|(unsupported-blit+-.dib !!)
|
|
%mor [%a (turn p.dib |=(a=dill-blit:dill json(dib a)))]
|
|
%hop %+ frond %hop
|
|
?@ p.dib (numb p.dib)
|
|
(pairs 'x'^(numb x.p.dib) 'y'^(numb y.p.dib) ~)
|
|
%put (frond -.dib (tape (tufa p.dib)))
|
|
?(%bel %clr) (frond %act %s -.dib)
|
|
==
|
|
--
|
|
--
|