Simple graphics API with transparency, polygons, reading image pixels?
Posted
by M. Elkstein
on Stack Overflow
See other posts from Stack Overflow
or by M. Elkstein
Published on 2010-06-11T09:00:34Z
Indexed on
2010/06/11
9:12 UTC
Read the original article
Hit count: 206
I need a simple graphics library that supports the following functionality:
- Ability to draw polygons (not just rectangles!) with RGBA colors (i.e., partially transparent),
- Ability to load bitmap images,
- Ability to read current color of pixel in a given coordinate.
Ideally using JavaScript or Python.
Seems like HTML 5 Canvas can handle #2 and #3 but not #1, whereas SVG can handle #1 and #2 but not #3. Am I missing something (about either of these two)? Or are there other alternatives?
© Stack Overflow or respective owner