0.0
No commit activity in last 3 years
No release in over 3 years
Provides additional CSS Hex value and opacity support for Gosu.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

>= 0
>= 0
 Project Readme

Rcade Colors

Provides additional CSS Hex value and opacity support for Gosu.

Installation

Add this line to your application's Gemfile:

gem 'rcade_colors'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rcade_colors

Usage

CSS Hex values

Using this gem, you can create a Gosu::Color object using CSS hex values:

Rcade::Color.from_hex('#ff0')

CSS color names

If you would like to create a Gosu::Color from a CSS color name, you can!

Rcade::Color.named('DarkSlateBlue')

See full list of supported color names.

Opacity

You can also modify the opacity of a color before using it:

color = Rcade::Color::RED.opacity(0.5)

And that's it. If you want any other features, submit an issue, or send a pull request.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request