Browse Source

fix colors

Gregg Tavares 5 years ago
parent
commit
25721f7d0f
2 changed files with 19 additions and 5 deletions
  1. 11 1
      threejs/lessons/resources/lesson.css
  2. 8 4
      threejs/lessons/threejs-materials.md

+ 11 - 1
threejs/lessons/resources/lesson.css

@@ -182,6 +182,16 @@ div[data-diagram] {
 .home-lang select {
     font-size: large;
 }
+.color {
+  padding: 0.25em;
+  border-radius: 0.5em;
+  color: black;
+}
+.dark-color {
+  padding: 0.25em;
+  border-radius: 0.5em;
+  color: white;
+}
 .checkerboard {
   background-color: #404040;
   background-image:
@@ -380,7 +390,7 @@ pre.prettyprint .atv { color: #70c0b1 } /* attribute value */
 pre.prettyprint .dec { color: #e78c45 } /* decimal         */
 pre.prettyprint .var { color: #d54e53 } /* variable name   */
 pre.prettyprint .fun { color: #7aa6da } /* function name   */
-
+foo{ color: #FF8080}
 pre.prettyprint ul.modifiedlines {
     list-style-type: none;
     padding-left: 0;

+ 8 - 4
threejs/lessons/threejs-materials.md

@@ -212,10 +212,14 @@ get into at another time.
 The `MeshNormalMaterial` will show you the *normals* of geometry.
 *Normals* are the direction a particular triangle or pixel faces.
 `MeshNormalMaterial` draws the view space normals (the normals relative to the camera).
-<span class="color:red;">x is red</span>,
-<span class="color:green;">y is green</span>, and
-<span class="color:blue;">z is blue</span> so things facing
-to the right will be red, up will be green, and toward the screen will be blue.
+<span style="background: red;" class="color">x is red</span>,
+<span style="background: green;" class="dark-color">y is green</span>, and
+<span style="background: blue;" class="dark-color">z is blue</span> so things facing
+to the right will be <span style="background: #FF7F7F;" class="color">pink</span>,
+to the left will be <span style="background: #007F7F;" class="dark-color">aqua</span>,
+up will be <span style="background: #7FFF7F;" class="color">light green</span>,
+down will be <span style="background: #7F007F;" class="dark-color">purple</span>,
+and toward the screen will be <span style="background: #7F7FFF;" class="color">lavender</span>.
 
 <div class="spread">
   <div>