ConsoleGL 1.0.6 → 1.0.7
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 +4 -4
- data/lib/consolegl.rb +33 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0eadad828aad5eaf43fac84c5545567b9f952b1c0490bedf0e1e372b8c8f508
|
4
|
+
data.tar.gz: 0a25eec871e32adf6eaa9ef684e6644bffba2ec8c603001bdfa81e09aa94f45e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfc80b6836b169a6ad68cab968bb4ff4ca2a6e0db6815a881c0a5a7e009fccda1ad8dbb1a844828f8beda5b96ebcf0562ad7c2d3a17d859f97285de490b83f6b
|
7
|
+
data.tar.gz: 4516410ab0ea666fcf622d363d3d323072f4604287dce71665f0c15dd7e3e9ef972e8e852544364e1718805c0e869db6af20b24e28022e39dc6b0bcb41a62230
|
data/lib/consolegl.rb
CHANGED
@@ -24,16 +24,42 @@
|
|
24
24
|
#Usage:
|
25
25
|
#LineVertical(Color.BLUE)
|
26
26
|
|
27
|
+
|
28
|
+
class Color
|
29
|
+
|
30
|
+
## COLOR VALUE ##
|
31
|
+
|
32
|
+
def self.RED
|
33
|
+
return 31
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.GREEN
|
37
|
+
return 32
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.YELLOW
|
41
|
+
return 33
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.BLUE
|
45
|
+
return 34
|
46
|
+
end
|
47
|
+
|
48
|
+
def self.LIGHT_BLUE
|
49
|
+
return 36
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.WHITE
|
53
|
+
return false
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
|
27
60
|
class Console
|
28
61
|
## COLOR ##
|
29
62
|
|
30
|
-
RED = 31
|
31
|
-
GREEN = 32
|
32
|
-
YELLOW = 33
|
33
|
-
BLUE = 34
|
34
|
-
LIGHT_BLUE = 36
|
35
|
-
WHITE = false
|
36
|
-
|
37
63
|
def self.addColor(x,s)
|
38
64
|
|
39
65
|
if x != false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ConsoleGL
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Okistuff
|
@@ -11,7 +11,7 @@ cert_chain: []
|
|
11
11
|
date: 2020-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Rendering Engine for Ruby kind of similar to OpenGL. It runs in the
|
14
|
-
console: 1.0.
|
14
|
+
console: 1.0.7 Updates: Added Color Support'
|
15
15
|
email: okistuffyt@gmail.com
|
16
16
|
executables: []
|
17
17
|
extensions: []
|