ConsoleGL 1.0.2 → 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 +51 -33
- 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
@@ -1,41 +1,58 @@
|
|
1
|
-
|
2
|
-
ConsoleGL Version 1.0 || DOCS
|
1
|
+
#ConsoleGL Version 1.0 || DOCS
|
3
2
|
|
4
|
-
class: Color
|
3
|
+
#class: Color
|
5
4
|
# Color IDs
|
6
|
-
RED
|
7
|
-
GREEN
|
8
|
-
YELLOW
|
9
|
-
|
10
|
-
LIGHT_BLUE
|
11
|
-
WHITE
|
12
|
-
|
13
|
-
class: Console
|
14
|
-
addColor(x, s):
|
15
|
-
Adds Color to string or number
|
16
|
-
Params:
|
17
|
-
X = COLOR ID
|
18
|
-
S = STRING OR NUMBER
|
19
|
-
Usage:
|
20
|
-
addColor(Color.RED, 'ERROR')
|
21
|
-
LineVertical(color):
|
22
|
-
Returns a Vertical Line
|
23
|
-
Params:
|
24
|
-
Color = COLOR ID
|
25
|
-
Usage:
|
26
|
-
LineVertical(Color.BLUE)
|
27
|
-
|
28
|
-
|
5
|
+
#RED
|
6
|
+
#GREEN
|
7
|
+
#YELLOW
|
8
|
+
#BLUE
|
9
|
+
#LIGHT_BLUE
|
10
|
+
#WHITE
|
11
|
+
|
12
|
+
#class: Console
|
13
|
+
#addColor(x, s):
|
14
|
+
#Adds Color to string or number
|
15
|
+
#Params:
|
16
|
+
#X = COLOR ID
|
17
|
+
#S = STRING OR NUMBER
|
18
|
+
#Usage:
|
19
|
+
#addColor(Color.RED, 'ERROR')
|
20
|
+
#LineVertical(color):
|
21
|
+
#Returns a Vertical Line
|
22
|
+
#Params:
|
23
|
+
#Color = COLOR ID
|
24
|
+
#Usage:
|
25
|
+
#LineVertical(Color.BLUE)
|
26
|
+
|
27
|
+
|
29
28
|
class Color
|
30
29
|
|
31
30
|
## COLOR VALUE ##
|
32
31
|
|
33
|
-
RED
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
+
|
39
56
|
|
40
57
|
end
|
41
58
|
|
@@ -47,6 +64,7 @@ class Console
|
|
47
64
|
|
48
65
|
if x != false
|
49
66
|
"\e[#{x}m#{s.to_s}\e[0m"
|
67
|
+
end
|
50
68
|
end
|
51
69
|
|
52
70
|
|
@@ -67,6 +85,7 @@ class Console
|
|
67
85
|
|
68
86
|
def self.LineHorizontal(color)
|
69
87
|
return addColor(color, "│")
|
88
|
+
end
|
70
89
|
|
71
90
|
def self.BigSquareMiddle(color)
|
72
91
|
return addColor(color, "■")
|
@@ -136,5 +155,4 @@ class Console
|
|
136
155
|
def ResetConsoleColor()
|
137
156
|
system "COLOR 07"
|
138
157
|
end
|
139
|
-
|
140
158
|
end
|
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: []
|