| Age | Commit message (Collapse) | Author |
|
|
|
|
|
Setting a 2d object's color to be random is great, however it's difficult to
re-use that color without manually extracting out the rgba values from that
color object. Ideally it would be convenient to be able to do this:
```ruby
square = Square.new(color: 'random')
square_two = Square.new(color: square.color)
```
This patch allows this behavior from any 2d shape, making it much easier to
reuse those random colors :)
|
|
New shortcuts for setting color values, like `.color.r/g/b/a` and simply `.r/g/b/a`; allow the British English spelling "colour"
|
|
|
|
|
|
|
|
It's what all the kids are doing
|
|
Adds opacity attribute reader for `Ruby2D::Color` and
`Ruby2D::Color::Set`. Adds `opacity/=` method to renderable objects, a
shortcut for `obj.color.opacity/=`.
|
|
|
|
|