MixBrush()

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Lerio69
Posts: 20
Joined: Sat Sep 24, 2016 11:47 pm
Location: Italy

MixBrush()

Post by Lerio69 »

I create Brush 1 by drawing a path in it, than I load a second brush from png file, how can merge this two brushes?
I using MixBrush(1, 2, 128) and then I save Brush 1 as png, but second brush is not merged to first

This is what I have in Display
Image

Where the path is a Brush 1, and the red arrow is a Brush 2

This is the image saved using SaveBrush()
Image

It seems that the MixBrush() function doesn't work.
User avatar
airsoftsoftwair
Posts: 5106
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: MixBrush()

Post by airsoftsoftwair »

MixBrush() is for blending two brushes. The arrow will end up in the top-left corner but since all pixels are invisible in that area in the target brush, you won't see it. If you want to copy the arrow to the path brush, just do something like this:

Code: Select all

SelectBrush(pathbrush, #SELMODE_COMBO, 2)
DisplayBrush(arrowbrush, x, y)
EndSelect
SaveBrush(pathbrush, ...)
User avatar
Lerio69
Posts: 20
Joined: Sat Sep 24, 2016 11:47 pm
Location: Italy

Re: MixBrush()

Post by Lerio69 »

Ahh ok, thanks.
Post Reply