summaryrefslogtreecommitdiffhomepage
path: root/test/color_spec.rb
AgeCommit message (Collapse)Author
2021-02-13Add some more color/colour testsTom Black
2019-01-10WASAPI can't be opened on AppVeyor (Windows)Tom Black
2019-01-03Allow color to initialize from an existing color objectMario Visic
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 :)
2018-09-28Color enhancementsTom Black
New shortcuts for setting color values, like `.color.r/g/b/a` and simply `.r/g/b/a`; allow the British English spelling "colour"
2018-09-26Documentation and style updatesTom Black
2017-12-10Allow colors beyond 0.0..1.0 rangeTom Black
2017-06-03Use named arguments (#65)lstrzebinczyk
2017-05-20Remove trailing whitespace everywhereTom Black
It's what all the kids are doing
2017-04-28Opacity improvementsTom Black
Adds opacity attribute reader for `Ruby2D::Color` and `Ruby2D::Color::Set`. Adds `opacity/=` method to renderable objects, a shortcut for `obj.color.opacity/=`.
2017-02-16Improve hex color handlingTom Black
2016-12-24Merge all tests into `test/` directoryTom Black