ConsoleGL 1.0.1 → 1.0.6
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 +29 -37
- 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: ff549b8703b049298fbf4a0b6d2047b23e8498260461ca79a450634d5fcfd4d2
|
4
|
+
data.tar.gz: 29b05673d5c57bd0dec23f4b369e715b2b9a003c1eba245f79e14f70b791fa80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af7ef85829320e41c776ed3f20ade486e8439fc898b2040d7e0c6b5c13b8ad6185736da378f7f72b053b491391853787e19ac5d4de8f44c239ed2cb9ef80e263
|
7
|
+
data.tar.gz: 1597a4758115cbf2dbf30ecb90773c37066aba4439767c6785a7ed59a2ce0cdfd2dc09690c1467a5bfd169ed960c0930bdd0a18640768699006e80549cb43aa1
|
data/lib/consolegl.rb
CHANGED
@@ -1,34 +1,31 @@
|
|
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
|
-
|
29
|
-
|
30
|
-
|
31
|
-
## COLOR VALUE ##
|
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
|
+
class Console
|
28
|
+
## COLOR ##
|
32
29
|
|
33
30
|
RED = 31
|
34
31
|
GREEN = 32
|
@@ -37,16 +34,11 @@ class Color
|
|
37
34
|
LIGHT_BLUE = 36
|
38
35
|
WHITE = false
|
39
36
|
|
40
|
-
end
|
41
|
-
|
42
|
-
|
43
|
-
class Console
|
44
|
-
## COLOR ##
|
45
|
-
|
46
37
|
def self.addColor(x,s)
|
47
38
|
|
48
39
|
if x != false
|
49
40
|
"\e[#{x}m#{s.to_s}\e[0m"
|
41
|
+
end
|
50
42
|
end
|
51
43
|
|
52
44
|
|
@@ -67,6 +59,7 @@ class Console
|
|
67
59
|
|
68
60
|
def self.LineHorizontal(color)
|
69
61
|
return addColor(color, "│")
|
62
|
+
end
|
70
63
|
|
71
64
|
def self.BigSquareMiddle(color)
|
72
65
|
return addColor(color, "■")
|
@@ -130,11 +123,10 @@ class Console
|
|
130
123
|
|
131
124
|
|
132
125
|
def SetConsoleColor(value)
|
133
|
-
system "COLOR " + value.to_s
|
126
|
+
system "COLOR " + value.to_s
|
134
127
|
end
|
135
128
|
|
136
129
|
def ResetConsoleColor()
|
137
130
|
system "COLOR 07"
|
138
131
|
end
|
139
|
-
|
140
132
|
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.6
|
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.6 Updates: Fixed Bugs'
|
15
15
|
email: okistuffyt@gmail.com
|
16
16
|
executables: []
|
17
17
|
extensions: []
|