在Shoes.app中使文本透明 [英] Make text transparent in Shoes.app

查看:93
本文介绍了在Shoes.app中使文本透明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

鞋子"中是否有一种方法可以使文本透明显示? 我有:

Is there a way in Shoes to have text show up transparent? I have:

Shoes.app{
  para "Text", :stroke => rgb(1.0,0.0,0.0,0.5), :size => 100
}

但是它只是显示100%红色.我知道不透明度可以填充,也可以用于中风吗? (我正在Mac OS X 10.4.11上使用"Shoe Raisins修订版1134"进行开发) 预先感谢

But it's just showing up 100% red. I know opacity works for fill, does it also work for stroke? (I am developing with Shoes Raisins Revision 1134 on Mac OS X 10.4.11) Thanks in advance

推荐答案

Alpha既可用于笔触,也可用于填充,但不适用于文本.例如,此代码将在文本上绘制一个50%透明的蓝色圆圈:

Alpha works on both stroke and fill, but not for text. For example, this code will draw a 50% transparent blue circle over the text:

Shoes.app do
  para "Text", :stroke => rgb(1.0,0.0,0.0,0.5), :fill => rgb(0, 1.0, 0, 0.5), :size => 100
  stroke rgb(0,0,1.0,0.5)
  strokewidth 4
  nofill
  oval 10, 10, 50
end

请注意,不仅段落的笔触不是透明的,填充也不是透明的.据我所知,没有办法从鞋子"中获取透明文本,尽管我想如果您事先将文本制成透明图像并加载,它可能是透明的.不过,我还没有尝试过,即使它可行,也可能用途有限.

Note that not only is the para's stroke not transparent, but neither is the fill. To my knowledge there is no way to get transparent text out of Shoes, although I suppose if you made the text into a transparent image beforehand and loaded it, it might be transparent. I haven't tried that, though, and even if it works, it's probably of limited usefulness.

这篇关于在Shoes.app中使文本透明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆