Masks and transparency

Posted by Henrik on Stack Overflow See other posts from Stack Overflow or by Henrik
Published on 2009-03-08T12:42:08Z Indexed on 2010/04/15 3:53 UTC
Read the original article Hit count: 344

Filed under:
|
|
|

Hi,

I'm fairly new to Shoes and ran into two problems.

First I want to set a mask using a partially transparent png, like this:

mask do
    image "images/stencilMask.png"
end

Is this possible somehow or can only vector shapes be used?

Apart from that, I noticed a small bug(?) when trying to set a transparent color as a stroke on any kind of text, like this:

title "Hello", :stroke => rgb(1.0, 0.0, 0.0, 0.5)

The transparency simply isn't applied. Am I doing anything wrong, or is this actually a bug?

Cheers and thanks for all answers

© Stack Overflow or respective owner

Related posts about shoes

Related posts about ruby