creativescala / doodle

Compositional vector graphics in Scala / Scala.JS
https://creativescala.org/doodle/
Apache License 2.0
327 stars 75 forks source link

Coordinates edges #81

Closed gilcu2 closed 4 years ago

gilcu2 commented 4 years ago

I would like to show the coordinate edges so when I see the drawing I can have the context. What can I do? Thanks Reynaldo

noelwelsh commented 4 years ago

Hi,

Would displaying the bounding boxes and origins do what you want?

On Sun, 29 Sep 2019, 10:50 Reynaldo Gil García, notifications@github.com wrote:

I would like to show the coordinate edges so when I see the drawing I can have the context. What can I do? Thanks Reynaldo

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/creativescala/doodle/issues/81?email_source=notifications&email_token=AAAH5XBWRTYUWA2KUCVRFCLQMB26VA5CNFSM4I3RXWV2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HOLYFLQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAH5XAZNC4K7HK7WWLJDJDQMB26VANCNFSM4I3RXWVQ .

noelwelsh commented 4 years ago

Further questions: what version of Doodle are you using? If you are using 0.9, are you using the Image data type or the tagless final algebras directly?

gilcu2 commented 4 years ago

Hi, yes.

On Sun, 29 Sep 2019, 15:28 Noel Welsh, notifications@github.com wrote:

Hi,

Would displaying the bounding boxes and origins do what you want?

On Sun, 29 Sep 2019, 10:50 Reynaldo Gil García, notifications@github.com wrote:

I would like to show the coordinate edges so when I see the drawing I can have the context. What can I do? Thanks Reynaldo

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/creativescala/doodle/issues/81?email_source=notifications&email_token=AAAH5XBWRTYUWA2KUCVRFCLQMB26VA5CNFSM4I3RXWV2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HOLYFLQ , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAAH5XAZNC4K7HK7WWLJDJDQMB26VANCNFSM4I3RXWVQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/creativescala/doodle/issues/81?email_source=notifications&email_token=ABC5TUNQIFBB5TPO7FJ7K73QMC3RFA5CNFSM4I3RXWV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73WH6A#issuecomment-536306680, or mute the thread https://github.com/notifications/unsubscribe-auth/ABC5TUKOYCNIHCFDWSKJW5TQMC3RFANCNFSM4I3RXWVQ .

noelwelsh commented 4 years ago

You can render origins by simply drawing a circle on any image. If you use 0.9 you can access the width and height of the bounding box using the Size algebra, and from that you can draw the bounding box.