Skip to content

Alpha channel #8

Open
Open

Description

@pinventado

Can we create a Color class with an Alpha channel? Maybe call it ColorAlpha or something like that?
We can also create a GetColorAlpha and SetColorAlpha to use the alpha channel.
This might also mean we need to create overloads for all other functions using Color, like DrawLine.

Activity

  1. dektar commented on Jan 12, 2021

    @dektar
    Contributor

    What if we extend the existing Color class with an optional alpha? That reduces the need for additional classes and overloaded functions. It can default to 100% opacity (255 or 0xFF), and there can be a separate constructor to create a Color with an Alpha.

    Students aren't looking at the Color class so they shouldn't be thrown off by the presence of an Alpha channel.

  2. pinventado commented on Jan 12, 2021

    @pinventado
    MemberAuthor

    Hmm that makes absolute sense :) Let's do that instead! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions