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

Segmented radial brush #1978

Merged
merged 12 commits into from
Apr 24, 2020
Merged

Commits on Apr 24, 2020

  1. Added initial prototype of a "segmented" radial brush which has cones…

    … of colour that radiate out from the center.
    
    Tried the System.Drawing.Drawing2D.PathGradientBrush to achieve this effect however that has a central colour that I am unable to remove.
    There's probably a better name for this brush.
    Wibble199 committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    a99bae8 View commit details
    Browse the repository at this point in the history
  2. Added property on the radial brush to generate interpolated colours b…

    …etween the defined colours. This can help achieve a smoothing effect between segments.
    
    Thanks to diogotr7 for the idea.
    Wibble199 committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    436f194 View commit details
    Browse the repository at this point in the history
  3. Corrected integer division to be done as float division. Was sometime…

    …s causing a black segment to appear at the end of the wheel.
    Wibble199 committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    a285577 View commit details
    Browse the repository at this point in the history
  4. Added support for animating the brush's rotation.

    Also increased brush texture size.
    Wibble199 committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    e6bfd5d View commit details
    Browse the repository at this point in the history
  5. Created a color stop collection class and extracted code used in the …

    …particle layer to be reused with this layer.
    
    Having it in a custom class can help with UI multithread issues when trying to access a gradientstopcollection of a media brush.
    Wibble199 committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    028d9c9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8ca3981 View commit details
    Browse the repository at this point in the history
  7. Made ToMediaBrush always return a LinearGradientBrush because ncore C…

    …olorBox was having some problems with the solid brush.
    
    Fixed crash that could occur with FromMediaBrush if two points were at the same offset. (Common with stops at 0 or 1)
    Wibble199 committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    65c7ede View commit details
    Browse the repository at this point in the history
  8. Rewrote the radial brush to accept a gradient instead of a list of co…

    …lours.
    
    Implemented radial layer's UI.
    Wibble199 committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    8fb66fd View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0d51e16 View commit details
    Browse the repository at this point in the history
  10. Cleaned up BrushUtils references.

    Stupid references. Can't live with em can't live without them.
    Wibble199 committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    d81e8aa View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8ac9f21 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7fadd0a View commit details
    Browse the repository at this point in the history