Is there way to tell whether the pixel of an image in pen+ V7 is transparent or not? #2031
Replies: 3 comments
-
I have a solution but it is exceptionally slow and prefer not to do it - basically, you can take a snapshot of the stage with looks+ and use the method of finding color that is typically used on scratch (brute force.) I prefer not to do this as it is extremely slow. |
Beta Was this translation helpful? Give feedback.
-
Pen+ doesn't seem to have an option for detecting the transparency/alpha of a pixel because it mainly uses 6-digit hex codes which don't support transparency. Also, the block only specifies color and there is no dropdown option for transparency, so my guess is no? |
Beta Was this translation helpful? Give feedback.
-
I am a contributer for pen+. although pen+ technicly supports transparency, the only way to achive it is imorting an image from a url or sprite that is transparent. I could probobly add this, but it would not be verry useful for most people. |
Beta Was this translation helpful? Give feedback.
-
I need to know whether a pixel of an image added to pen+ V7 is transparent or not. When you try to get the color of a transparent pixel, it gives the same number that a pixel of pure white would be. Is there a way to tell whether it's transparent or white?
Beta Was this translation helpful? Give feedback.
All reactions