Setting custom selection color

75 views
Skip to first unread message

Tranek

unread,
May 7, 2013, 3:41:39 AM5/7/13
to pap...@googlegroups.com
Is it possible to change the selection color for an item/path from the default blue?

For example, say I clicked on a path to select it:
event.item.selected = true;

Is there something like:
event.item.selectioncolor = new RgbColor(red, green, blue);



Thanks

Tranek

unread,
May 7, 2013, 3:46:47 AM5/7/13
to pap...@googlegroups.com
Further clarification - a selection color specific to each item and changeable on the fly is what I'm after.

Jürg Lehni

unread,
May 7, 2013, 1:17:29 PM5/7/13
to pap...@googlegroups.com
I think we were planning on making this a per-layer option. Would that be good enough?
> --
> You received this message because you are subscribed to the Google Groups "Paper.js" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to paperjs+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Tranek

unread,
May 7, 2013, 6:00:06 PM5/7/13
to pap...@googlegroups.com
Over at EtherDraw (https://github.com/JohnMcLear/draw/tree/develop) we're building a real-time collaborative drawing web app. Each artist is represented by a color and it would be great to show other artists' selections as their artist color to differentiate who has selected what. Everything is done only on one layer for now though so a per-item option is preferred from my end if possible.

Jürg Lehni

unread,
May 8, 2013, 1:53:06 AM5/8/13
to pap...@googlegroups.com
That makes sense... Could you create an issue for this?

I'm excited to the development on EtherDraw, btw. I created Vectorama.org 13 years ago, a now almost defunct realtime multiuser drawing application, then built on Macromedia Director and the Multiuser Xtra, with a reverse engineered server written in Java. Fun times!

Jürg

Tranek

unread,
May 8, 2013, 5:47:20 AM5/8/13
to pap...@googlegroups.com
Done! https://github.com/paperjs/paper.js/issues/219

Thanks for your interest in support! We couldn't do what we're doing with you guys and paperjs so thanks :)

Vectorama.org looks neat - I had never heard of it before now! Perhaps one day EtherDraw can earn the title of the spiritual successor to it :)
Reply all
Reply to author
Forward
0 new messages