graphics
graphics copied to clipboard
A library for 2D graphics, written in Rust, that works with multiple back-ends
Depends on https://github.com/PistonDevelopers/graphics/pull/997. See https://github.com/PistonDevelopers/graphics/issues/999 Pre-multiplied alpha gives correct blending for transparent surfaces. This requires custom fragment shaders. - [ ] Add pre-multiply fragment shaders to piston-shaders_graphics2d - [ ]...
Currently the design of `Character` is: ``` Rust pub struct Character { /// The offset of character. pub offset: [f64; 2], /// The size of character, including space. pub size:...
`Character::offset` seems to have different signs for horizontal and vertical offset in `Text::draw`, which is confusing. Is this because it uses same coordinate system as FreeType?
Some effects or use cases require special data structures or shaders. It is difficult to design an abstraction that works across all the use cases. One problem is that generic...
This issue is for keeping track of myths and evidence regarding performance for 2D graphics. All claims will have one of these statuses: - Not tested - Plausible - Confirmed...
I'm just wondering what the reasoning behind using f64 instead of f32 for all the math stuff is. In most cases the extra precision is not necessary and this really...
Can be added to `Polygon`. From nical's comment on IRC: > basically you take a point A inside of the shape and each triangle is made of P(i), P(i+1) and...
A documentation for getting started, installation and explaining how the library is organized and how it should be used would be very nice
See https://github.com/PistonDevelopers/piston/issues/1383