Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
A simple Ruby library to perform operations on RGB and HSL colours.
Instantiate an RGB (red, green, blue) colour:
orange = ColorMath::RGB.new(1.0, 0.5, 0)
Or from a hex value via a helper method:
white = ColorMath::hex_color("#fff")
blue = ColorMath::hex_color("#0000ff")
Instantiate an HSL (hue, saturation, luminance) colour:
pink = ColorMath::HSL.new(350, 1, 0.88)
Retrieve the RGB components of a colour:
pink.red # => 1.0
pink.green # => 0.76
pink.blue # => 0.8
Or the HSL components:
orange.hue # => 30.0
orange.saturation # => 1.0
orange.luminance # => 0.5
Combine two colours via an alpha blend, e.g. 30% orange on white:
combined = ColorMath::Blend.alpha(white, orange, 0.3)
Convert a colour to hexadecimal representation:
combined.hex # => "#ffd8b2"
That’s it. It only does the basics that I need for the job in hand, but it’s probably a good basis for extension.
FAQs
Unknown package
We found that colormath demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.