New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documenting images effects : blur, shadow, glow #83
Comments
Should we create a new paragraph specially for image effects at the end of the Image page or keep the dictionary layout of that part of the manual and add blur, shadow, glow methods ? |
I'd be tempted to do a special paragraph or two at the end with some simple examples ' run this' That shadow example is great. @passenger94 , thanks for working this unknown area of Shoes. |
thanks to you !!! @ccoupe :-)) |
@passenger94 - are you going to do the manual changes? If so please assign yourself. I'm not up to speed on any of these transforms or what one parameter setting means vs another. The only doc is samples/simple-spere.rb and I don't understand what it does either. I will say I'm very happy this old half working code _why left us with is back to working. It makes me very happy to see Shoes come alive again with help from you and @backorder, Shoes is not only back, it's better than ever. |
Please, you are enjoying all the goodness your efforts summoned !!! I'll try to get a working draft, but again English is not my mother tongue, i will need your help |
when combining several effects, order is important Shoes.app :width => 350, :height => 200, :resizable => true do
image :top => 20, :left => 20 do
fill "#127"
nostroke
oval 80, 40, 200, 50
blur 3
glow 10, inner: true, fill: rgb(0.8, 0.4, 0, 0.9)
glow 10, fill: rgb(0.8, 0.4, 0, 0.9)
shadow radius: 20, fill: rgb(0, 0, 0, 0.75), displace_left: -20, displace_top: 30
end
end i think it as to do with Cairo's compositing operators : http://cairographics.org/operators/ used for glow and shadow (CAIRO_OPERATOR_IN, CAIRO_OPERATOR_DEST_OVER, CAIRO_OPERATOR_OUT, CAIRO_OPERATOR_ATOP) if shadow is last everything works on all variations i've tested so far |
Thanks, @ccoupe. I also share your feelings. We are all pulling our weight and the results are showing in Shoes. @passenger94 you are doing a great job — fixing problems, code samples, screenshots, documentation. Keep it up guys! |
@passenger94 , once we know what you want to say we can fix any problems with how it's said. |
Added a new page "Image-Effects on image blocks" just after Image Element, so link in left side index is Image-Effects adding a pull request with needed changes to effects.c for example to work ! |
i can add this example too if needed (shows effects in action with multiple shapes/images) Shoes.app :width => 400, :height => 450, :resizable => true do
image :top => 20, :left => 20 do
fill "#127"
nostroke
oval 80, 40, 200, 50
rect 90, 60, 100, 50
blur 3
glow 10, fill: rgb(0.8, 0.4, 0, 0.9)
glow 10, inner: true, fill: rgb(0.8, 0.4, 0, 0.9)
shadow radius: 20, fill: rgb(0, 0, 0, 0.75), displace_left: -20, displace_top: 30
end
image :width => 700, :height => 500, :top => 180, :left => 20 do
image "./static/app-icon.png", :top => 40, :left => 60
image "./static/app-icon.png", :top => 60, :left => 80
#blur 10
glow 10, inner: true, fill: yellow
shadow radius: 10, fill: rgb(0, 0, 0, 0.75), displace_left: -20, displace_top: 30
end
end |
ooops humm what's the more clear/concise way to express that ? |
@passenger94 - your English quite good - don't apologize. I might change a word or two to be more colloquial someday - when I have nothing to do. |
No description provided.
The text was updated successfully, but these errors were encountered: