rcade_colors 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5515fab6c047adebf5d34e7d0a1df76a1a23b02f
4
- data.tar.gz: e53d78c45cd9e8b127ebaf10684b19dbd211cce6
3
+ metadata.gz: 9c484ba6992fc38fcfc084d8125c607e73d4462e
4
+ data.tar.gz: edcf00de4be2fbab6d155f4ed6ae2277c964c17c
5
5
  SHA512:
6
- metadata.gz: 42eae60bcc4f2f3be767e2033c8d7e4a33a53062cdaff05eb511ce440c5838b6cbea4a437a4d024e00a0dab4eedb7e7abe8294e445cc1ba7e8f722948a3b09b9
7
- data.tar.gz: b01022fb1f1ea3ed44c812e4a1f5a40b8df69d6db028d5e9c07c3d374d9d813a70ec070d98b35450e338472fc2ca2a35d1af9fc6432cfdf81147c0dfd4ddc1f2
6
+ metadata.gz: 6d5d4e72481b7337897c5226964280c58d6f67e4c898a7d60b5db2e2db148df6a055224831e8935b5d4435a10d21d722e7d0cdf5fbf331c28cb208557ff5f65a
7
+ data.tar.gz: eebfdbf07f2f1aebc6dee0e3fcefcabc5b4f91f7aaec0f3ce50a5d8fcf33a70d940b9627bcac5f9e8e476b6ec0ecd30c5eadf4f5b460f683d603bcff50afcae9
data/lib/rcade_colors.rb CHANGED
@@ -13,7 +13,7 @@ module Rcade
13
13
  # "#cabbed"
14
14
  def self.from_hex(hex)
15
15
  color = Color::RGB.from_html(hex).to_hsl
16
- Gosu::Color.from_hsv(color.hue.to_i, color.s, color.l) # 255, 1.0, 1.0
16
+ self.from_hsv(color.hue.to_i, color.s, color.l) # 255, 1.0, 1.0
17
17
  end
18
18
 
19
19
  def self.named(color_name)
@@ -25,7 +25,7 @@ module Rcade
25
25
  # opacity should be a float 0.0..1.0
26
26
  def opacity(opacity)
27
27
  a = alpha * opacity
28
- Gosu::Color.from_ahsv(a, hue, saturation, value)
28
+ self.from_ahsv(a, hue, saturation, value)
29
29
  end
30
30
 
31
31
  end
data/rcade_colors.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "rcade_colors"
5
- spec.version = "0.0.1"
5
+ spec.version = "0.0.2"
6
6
  spec.authors = ["Andrew Havens"]
7
7
  spec.email = ["email@andrewhavens.com"]
8
8
  spec.description = %q{Provides additional CSS Hex value and opacity support for Gosu.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcade_colors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Havens