Speedy2D icon indicating copy to clipboard operation
Speedy2D copied to clipboard

Add more details about functionality to the README

Open wyhinton opened this issue 4 years ago • 4 comments

Hello,

Just wondering if alpha blending/compositing similar to that available in raqote is an objective/planned feature for speed2d, or if this is out of scope.

wyhinton avatar Apr 06 '21 19:04 wyhinton

Thanks for raising this! Could you give an example of what you mean? Speedy2D supports images with an alpha channel, as well as drawing shapes/images/text with an alpha modifier (as part of the colour).

QuantumBadger avatar Apr 06 '21 20:04 QuantumBadger

Ah I see know that Color can can take a rgba value, and that adding an alpha channel to any given image byte sequence would allow you to adjust the opacity.

I'm currently building an image editing app and testing out different 2d graphics libraries for rust. I'm interested in understanding the direction and goals of speedy2d.

A comparison of speedy2d to other existing graphics libraries might clear things up for me and other users. Raqote states that it aims to a have a feature set "with roughly the same capabilities as the cairo image backend."Tinyskia aims for a minimal, cpu-only renderer with only a small subset of Skia's functionality. Is there an API/library that speedy2d is using as a point of reference, or which it seeks feature parity with? Of course, Speedy2d has it's own unique affordances, have some reference points to popular graphics libraries could still be informative.

Some other thoughts:

  • Benchmarks for speedy2d vs some Raqote or Tinyskia would also be great info for people deciding on a graphics library!
  • Adding a "current functionality" section to the readme could help prospective users compare speedy2d to some of the other rust graphics libraries, maybe something like this:

Currently functionality:

  • Window creation
  • Event handling
  • Alpha blending
  • Nearest Neighbor and Linear Image Smoothing
  • Drawing functions text, tris, quads, lines, and rectangles, circles,
  • Load .otf and .ttf font files
  • Text layout utilities
  • RGB and RGBA image support

wyhinton avatar Apr 07 '21 04:04 wyhinton

Thanks for the suggestions, yes I do think it would be a good idea to update the readme with some of this information, particularly the feature list.

I'm not sure if there's a graphics library out there quite like Speedy2D. The closest comparison I can think of is something like SDL, although obviously SDL is a much bigger library with a lot more functionality.

QuantumBadger avatar Apr 19 '21 21:04 QuantumBadger

Added initial table of features to the readme (currently in the WebGL branch):

https://github.com/QuantumBadger/Speedy2D/tree/webgl_dev

QuantumBadger avatar Dec 04 '21 22:12 QuantumBadger