This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Notes on this Java snippet: | |
- I left out 'Math.' because it's boilerplate/noise | |
- Color3f is a simple read/write container where the components are float instead of int | |
- Implementation of 'fromSRGB' and 'toSRGB' should be straightforward | |
- Uses tab characters for initial indentation, continues with space characters for vertical alignment purposes | |
// HCI ///////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
/** | |
* This color space is a hexagonal bipyramid with the grays at the central axis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
/** | |
* HTML Un-escaper by Nick Frolov. | |
* <p> | |
* With improvement suggested by Axel Dörfler. | |
* <p> | |
* Replaced character map with HTML5 characters from<a href="https://www.w3schools.com/charsets/ref_html_entities_a.asp"> | |
* https://www.w3schools.com/charsets/ref_html_entities_a.asp</a> | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import golly as g | |
from glife import * | |
napkinLetters=[' ', 'c', 'e', 'k', 'a', 'i', 'n', 'y', 'q', 'j', 'r', 't', 'w', 'z'] | |
mooreParts = ["0 ", \ | |
"1e", \ | |
"2e", \ | |
"2i", \ | |
"3e", \ |