Skip to content
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

Shape rasterizer questions #94

Open
codecat opened this issue Aug 28, 2016 · 3 comments
Open

Shape rasterizer questions #94

codecat opened this issue Aug 28, 2016 · 3 comments

Comments

@codecat
Copy link
Contributor

codecat commented Aug 28, 2016

I just managed to get our application running on the shape rasterizer branch, and played around with it a bit. Looks really powerful so far. In #44 you mentioned that a border-width and border-color would not be necessary when this is implemented - how exactly would that work for variable size elements? (eg. resizable windows)

Also, am I right to assume that the srect, sglyph, sblur etc are "commands" that are executed in sequence? Seems like a lot of cool things could be chained like that.

Very nice so far! 👍

@fruxo
Copy link
Owner

fruxo commented Aug 28, 2016

The srect, sglyph, sblur (etc.) attributes are commands (as you expected) to the stencil buffer, that is then rasterizer using the color command. The target is a bitmap fragment. So you can f.ex compose a border fragment and border element, and reference it from anything that wants a border. If you make it white, you can colorize it with img-color (instead of generating one for each color of border you need). It can be outset by using "expand" as usual.

BoxStretch and BorderStretch will take care of the variable size stuff (just like Androids "9-patches"), just like with fragments loaded from image files.

@codecat
Copy link
Contributor Author

codecat commented Aug 28, 2016

Ah interesting, thanks for the tip! I'll have to try getting that to work.

@codecat
Copy link
Contributor Author

codecat commented Sep 2, 2016

Another question - do you have any idea when the shape rasterizer will be ready to be merged into master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants