Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

v1.2.0 #3

Merged
merged 19 commits into from
Apr 7, 2022
Merged

v1.2.0 #3

merged 19 commits into from
Apr 7, 2022

Conversation

cxmeel
Copy link
Owner

@cxmeel cxmeel commented Apr 6, 2022

v1.2.0 should include a few changes to the colour-utils library, without introducing any breaking changes:

  • Move the current WCAG methods of calculating colour contrast into their own submodule
    • The methods in the root of the library should be forwarded to the WCAG methods for now
    • They may be redirected in future to APCA methods, or merged under a flag
  • Implement the newer APCA method of calculating colour contrast under a new APCA submodule
  • Implement colour blindness simulation
  • Add type definitions
    • WCAG
    • APCA
    • Blind
  • Remove Roblox Studio CI from GitHub workflows
  • Document new methods
  • Remove CI badges

cxmeel added 3 commits April 6, 2022 15:15
- Add a method to stringify Color3 values to a more readable format
- Include Hex codes in output text
- Truncate decimals to 3 places
APCA is a new way to determine contrast ratio. Moving contrast methods to a separate WCAG submodule allows for the APCA method to be included too, without removing the older methods.

- `GetContrastingColour` and `GetContrastRatio` are temporarily redirected to the `WCAG` submodule until an `APCA` submodule is included
Added a method (based on the `color-blind` library on npm) to simulate colour blindness.

The blind submodule takes a `Color3` and an "Enum" (included in the Blind submodule), and returns a `Color3` representing how someone with the given deficiency might see it.
@cxmeel cxmeel added the enhancement New feature or request label Apr 6, 2022
@cxmeel cxmeel self-assigned this Apr 6, 2022
@cxmeel cxmeel marked this pull request as ready for review April 7, 2022 11:05
@cxmeel cxmeel merged commit a9ce295 into default Apr 7, 2022
@cxmeel cxmeel deleted the dev branch April 7, 2022 11:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant