tuxedo-css-rails 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 +4 -4
- data/README.md +2 -1
- data/tuxedo-css-rails.gemspec +1 -1
- data/vendor/assets/javascripts/three-render.js +174 -171
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7c0c4a59f658a18dae95161da75727fc6743f5d
|
4
|
+
data.tar.gz: cda98a9a9efe0e786cb3d03482af260875d63bbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fc35553a7a703f418539e363557c285ad606b295cdc178959b0dbe34a3a543a0c3b9072d961140c1f30fd3978175ee745914894d86455b73293fa5dfc4fee26
|
7
|
+
data.tar.gz: cfb17668238681687d02070f96a92c0c88a13cbd6674391d159bacfb0334bbf917c603c1688e32ebb22c9014bab1cc05801f1529536540cf2035a23f5b186edd
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# Tuxedo::Css::Rails
|
2
2
|
|
3
|
+
A gem to simplify the setup process of the [Tuxedo CSS](https://github.com/ericanafziger/tuxedo-css) framework.
|
3
4
|
|
4
5
|
## Installation
|
5
6
|
|
@@ -55,7 +56,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
55
56
|
|
56
57
|
## Contributing
|
57
58
|
|
58
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
59
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/DiegoSPB/tuxedo-css-rails/pulls. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
59
60
|
|
60
61
|
|
61
62
|
## License
|
data/tuxedo-css-rails.gemspec
CHANGED
@@ -1,172 +1,175 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
var
|
5
|
-
var
|
6
|
-
var
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
1
|
+
$(document).ready(function() {
|
2
|
+
|
3
|
+
//color variables
|
4
|
+
var dark = 0x262525;
|
5
|
+
var darkGrey = 0x5c5c5c;
|
6
|
+
var mdGrey = 0xc8c8c8;
|
7
|
+
var light = 0xf4f4f4;
|
8
|
+
var pop = 0x2A7F62;
|
9
|
+
|
10
|
+
//THREE variables
|
11
|
+
var camera,
|
12
|
+
mySphereCanvas = document.getElementById('three-sphere'),
|
13
|
+
myTorusCanvas = document.getElementById('three-torus');
|
14
|
+
myCubeCanvas = document.getElementById('three-cube');
|
15
|
+
|
16
|
+
// Camera
|
17
|
+
camera = new THREE.PerspectiveCamera( 35, window.innerWidth / window.innerHeight, 0.1, 1000 );
|
18
|
+
|
19
|
+
// Materials
|
20
|
+
var materialWireframe = new THREE.MeshLambertMaterial({
|
21
|
+
color: mdGrey, //material color
|
22
|
+
wireframe: true,
|
23
|
+
transparent: true,
|
24
|
+
opacity: 0.4
|
25
|
+
});
|
26
|
+
var materialShiny = new THREE.MeshPhongMaterial({
|
27
|
+
// depthTest: false,
|
28
|
+
color: dark, //material color
|
29
|
+
shading: THREE.FlatShading,
|
30
|
+
shininess: 100,
|
31
|
+
specular: pop,
|
32
|
+
// wireframe: true,
|
33
|
+
// emissive: dark
|
34
|
+
});
|
35
|
+
var reflection = THREE.CubeTextureLoader( ['./img/palms-dark.png', './img/palms-dark.png','./img/palms-dark.png','./img/palms-dark.png','./img/palms-dark.png','./img/palms-dark.png', ] );
|
36
|
+
|
37
|
+
|
38
|
+
//If mySphereCanvas exists render the sphere
|
39
|
+
if (mySphereCanvas) {
|
40
|
+
var sphereRenderer,
|
41
|
+
sceneSphere;
|
42
|
+
|
43
|
+
window.addEventListener("resize", function() {
|
44
|
+
sphereRenderer.setSize( window.innerWidth, window.innerHeight );
|
45
|
+
camera = new THREE.PerspectiveCamera( 35, window.innerWidth / window.innerHeight, 0.1, 1000 );
|
46
|
+
});
|
47
|
+
|
48
|
+
// sphereRenderer
|
49
|
+
sphereRenderer = new THREE.WebGLRenderer({antialias: true});
|
50
|
+
sphereRenderer.setSize( window.innerWidth, window.innerHeight);
|
51
|
+
mySphereCanvas.appendChild( sphereRenderer.domElement );
|
52
|
+
sphereRenderer.setClearColor(dark); //Background color of sphere canvas
|
53
|
+
sphereRenderer.setPixelRatio(window.devicePixelRatio);
|
54
|
+
|
55
|
+
//Scene
|
56
|
+
sceneSphere = new THREE.Scene();
|
57
|
+
|
58
|
+
// Lights
|
59
|
+
var lightSphere = new THREE.AmbientLight(0xffffff, 0.5);
|
60
|
+
sceneSphere.add(lightSphere);
|
61
|
+
var light2Sphere = new THREE.PointLight(0xffffff, 0.5);
|
62
|
+
sceneSphere.add(light2Sphere);
|
63
|
+
|
64
|
+
//Geometry
|
65
|
+
var sphere = new THREE.SphereGeometry( 80, 10, 10 );
|
66
|
+
|
67
|
+
// Creating and adding shapes
|
68
|
+
var sphere = new THREE.Mesh( sphere, materialWireframe ); //change sphere material here
|
69
|
+
sphere.position.z = -500;
|
70
|
+
sceneSphere.add( sphere );
|
71
|
+
|
72
|
+
|
73
|
+
function sphereRender() {
|
74
|
+
requestAnimationFrame( sphereRender );
|
75
|
+
sphere.rotation.x += 0.007;
|
76
|
+
sphere.rotation.y += 0.01;
|
77
|
+
sphereRenderer.render( sceneSphere, camera );
|
78
|
+
}
|
79
|
+
sphereRender();
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
//If myCubeCanvas exists render the sphere
|
84
|
+
if (myCubeCanvas) {
|
85
|
+
var cubeRenderer,
|
86
|
+
sceneCube;
|
87
|
+
|
88
|
+
window.addEventListener("resize", function() {
|
89
|
+
cubeRenderer.setSize( window.innerWidth, window.innerHeight );
|
90
|
+
camera = new THREE.PerspectiveCamera( 35, window.innerWidth / window.innerHeight, 0.1, 1000 );
|
91
|
+
});
|
92
|
+
|
93
|
+
// cubeRenderer
|
94
|
+
cubeRenderer = new THREE.WebGLRenderer({antialias: true});
|
95
|
+
cubeRenderer.setSize( window.innerWidth, window.innerHeight);
|
96
|
+
myCubeCanvas.appendChild( cubeRenderer.domElement );
|
97
|
+
cubeRenderer.setClearColor(dark); //Background color of cube canvas
|
98
|
+
cubeRenderer.setPixelRatio(window.devicePixelRatio);
|
99
|
+
|
100
|
+
//Scene
|
101
|
+
sceneCube = new THREE.Scene();
|
102
|
+
|
103
|
+
// Lights
|
104
|
+
var lightCube = new THREE.AmbientLight(0xffffff, 0.5);
|
105
|
+
sceneCube.add(lightCube);
|
106
|
+
var light2Cube = new THREE.PointLight(0xffffff, 0.5);
|
107
|
+
sceneCube.add(light2Cube);
|
108
|
+
|
109
|
+
//Geometry
|
110
|
+
var cube = new THREE.CubeGeometry( 20, 20, 20, 20, 2, 2 );
|
111
|
+
|
112
|
+
// Creating and adding shapes
|
113
|
+
var cube = new THREE.Mesh( cube, materialWireframe ); //change cube material here
|
114
|
+
cube.position.z = -100;
|
115
|
+
sceneCube.add( cube );
|
116
|
+
|
117
|
+
|
118
|
+
function cubeRender() {
|
119
|
+
requestAnimationFrame( cubeRender );
|
120
|
+
cube.rotation.x += 0.007;
|
121
|
+
cube.rotation.y += 0.01;
|
122
|
+
cubeRenderer.render( sceneCube, camera );
|
123
|
+
}
|
124
|
+
cubeRender();
|
125
|
+
|
126
|
+
}
|
127
|
+
|
128
|
+
//If myTorusCanvas exists render the Torus Knot
|
129
|
+
if (myTorusCanvas) {
|
130
|
+
var torusRenderer,
|
131
|
+
sceneTorus;
|
132
|
+
|
133
|
+
window.addEventListener("resize", function() {
|
134
|
+
torusRenderer.setSize( window.innerWidth, window.innerHeight );
|
135
|
+
camera = new THREE.PerspectiveCamera( 35, window.innerWidth / window.innerHeight, 0.1, 1000 );
|
136
|
+
});
|
137
|
+
|
138
|
+
|
139
|
+
// window.onresize = function() {
|
140
|
+
// }
|
141
|
+
|
142
|
+
// torusRenderer
|
143
|
+
torusRenderer = new THREE.WebGLRenderer({antialias: true});
|
144
|
+
torusRenderer.setSize( window.innerWidth, window.innerHeight);
|
145
|
+
myTorusCanvas.appendChild( torusRenderer.domElement );
|
146
|
+
torusRenderer.setClearColor(dark); //Background color of canvas
|
147
|
+
torusRenderer.setPixelRatio(window.devicePixelRatio);
|
148
|
+
|
149
|
+
// Scene
|
150
|
+
sceneTorus = new THREE.Scene();
|
151
|
+
|
152
|
+
// Lights
|
153
|
+
var lightTorus = new THREE.AmbientLight(0xffffff, 0.5);
|
154
|
+
sceneTorus.add(lightTorus);
|
155
|
+
var light2Torus = new THREE.PointLight(0xffffff, 0.5);
|
156
|
+
sceneTorus.add(light2Torus);
|
157
|
+
|
158
|
+
// Geometry
|
159
|
+
var torusKnotGeometry = new THREE.TorusKnotGeometry( 70, 18, 10, 10 );
|
160
|
+
|
161
|
+
// Creating and adding shapes
|
162
|
+
var torusKnot = new THREE.Mesh( torusKnotGeometry, materialShiny ); //change torus material here
|
163
|
+
torusKnot.position.z = -500;
|
164
|
+
sceneTorus.add( torusKnot );
|
165
|
+
|
166
|
+
function torusRender() {
|
167
|
+
requestAnimationFrame( torusRender );
|
168
|
+
torusKnot.rotation.x -= 0.007;
|
169
|
+
torusKnot.rotation.y -= 0.01;
|
170
|
+
// torusKnot.rotation.z -= 0.007;
|
171
|
+
torusRenderer.render( sceneTorus, camera );
|
172
|
+
}
|
173
|
+
torusRender();
|
174
|
+
}
|
172
175
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tuxedo-css-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego Suarez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|