Skip to content

Gradients

Changes

  • This MR adds support for gradients

  • Refactored the color stop (Bs) operator

    • Fixes #77 (closed)
    • Fixed an issue incorrect color detection
    • Fixed incorrect opacity detection
    • Added support for type=0 CMYK color for colortype=5
  • Added a finalize step to remove unused gradients from the generated SVG.

  • The last optional value of the Bg operator is now a float value representing the aspect ratio of radial gradients

  • Added an exception for operator token parsing failures.

  • Added warning for unimplemented operators

  • Bm, Bc, and Xm operators are ignored

  • Added tests

  • Still TODO:

    • Color stop mid-points

Checklist

  • Change is tested
  • Change is documented.
  • Licenses are up to date
Edited by Manpreet Singh

Merge request reports

Loading