Common.Colors - VirtueSky/sunflower GitHub Wiki

Common.Colors

SetAlpha

  • Set alpha for color
    /// API
    Color SetAlpha(this Color color, float a)
  • Set alpha for graphic
    /// API
    Graphic SetAlpha(this Graphic graphic, float a)
  • Set alpha for SpriteRenderer
    /// API
    SpriteRenderer SetAlpha(this SpriteRenderer renderer, float a)

SetRed

  • Set red for color
    /// API
    Color SetRed(this Color color, float r)
  • Set red for graphic
    /// APi
    Graphic SetRed(this Graphic graphic, float r)
  • Set red for SpriteRenderer
    /// API
    SpriteRenderer SetRed(this SpriteRenderer renderer, float r)

SetGreen

  • Set green for color
    /// API
    Color SetGreen(this Color color, float g)
  • Set green for graphic
    /// API
    Graphic SetGreen(this Graphic graphic, float g)
  • Set green for SpriteRenderer
    /// API
    SpriteRenderer SetGreen(this SpriteRenderer renderer, float g)

SetBlue

  • Set blue for color
    /// API
    Color SetBlue(this Color color, float b)
  • Set blue for graphic
    /// API
    Graphic SetBlue(this Graphic graphic, float b)
  • Set blue for SpriteRenderer
    /// API
    SpriteRenderer SetBlue(this SpriteRenderer renderer, float b)