This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-09-12 16:17:13

wilmettelibrary
Scratcher
Registered: 2010-01-27
Posts: 2

Change color of image drawn with pen?

I'm sure this has been addressed before, but I haven't found what I need in the forums and Google (or at least haven't recognized it)...

Is there a way to change the color of an image after you have drawn it with the pen tool? It seems that the image does not exist as a sprite, so can it be acted upon with scripts?

Thanks so much,
Lisa

Offline

 

#2 2012-09-12 16:19:10

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Change color of image drawn with pen?

The only way to do this is to draw it again with different pen colors.


http://i50.tinypic.com/312u714.jpg

Offline

 

#3 2012-09-12 16:25:34

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: Change color of image drawn with pen?

You could make it a Sprite, also. Just right click on the stage, click on 'grab screen region for new sprite', then drag the mouse over the picture and release. Then it will be a sprite and you can use a script to change the color effect.


La La
I wrote an album.

Offline

 

#4 2012-09-13 10:26:24

wilmettelibrary
Scratcher
Registered: 2010-01-27
Posts: 2

Re: Change color of image drawn with pen?

AgentRoop, that sounds like the kind of functionality I need... only problem is, I would need it to happen while the project is already running. (e.g. A button is clicked, the image drawn changes colors.) Perhaps there is just no way to do this.

Thanks for the responses, folks.

Offline

 

#5 2012-09-13 11:06:00

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Change color of image drawn with pen?

No, that cannot happen. However, you can cheat by making a large rectangular sprite of some color and set its ghost effect (transparency) to around 50%. The colors will mix, making the trails appear to change in color.  smile


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6 2012-09-13 13:15:22

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Change color of image drawn with pen?

There is always a way to do it, as long as it happens in Scratch alone.

You can store x and y positions and pen data in some lists and redraw, and then change the pen color data list's value by 1, and do it again, forever and ever. That's the only way I know how.

Exactly what are you trying to make?


http://i50.tinypic.com/312u714.jpg

Offline

 

#7 2012-09-13 16:36:29

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: Change color of image drawn with pen?

The amateurish way is to change the color effect. But hardmath's idea is the best way to go. They really should add a feature that allows you to change an existing sprite in more ways than just effects. Oh well.


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#8 2012-09-14 07:12:10

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Change color of image drawn with pen?

bullelk12 wrote:

The amateurish way is to change the color effect. But hardmath's idea is the best way to go. They really should add a feature that allows you to change an existing sprite in more ways than just effects. Oh well.

You cannot use color effect on pen marks.


http://i50.tinypic.com/312u714.jpg

Offline

 

Board footer