Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: chinchang/IsoBlocks
base: f9324472cf
...
head fork: chinchang/IsoBlocks
compare: 8289bb9ab7
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 30 additions and 2 deletions.
  1. +24 −0 characters.coffee
  2. +1 −1  index.html
  3. +5 −1 isoblocks.coffee
View
24 characters.coffee
@@ -281,4 +281,28 @@ class Characters
[0,0]
[0,1]
[1,0]
+ ]
+
+ @f_slash: [
+ [0,0,0,0,1]
+ [0,0,0,1,0]
+ [0,0,1,0,0]
+ [0,1,0,0,0]
+ [1,0,0,0,0]
+ ]
+
+ @l_square_bracket: [
+ [1,1,1]
+ [1,0,0]
+ [1,0,0]
+ [1,0,0]
+ [1,1,1]
+ ]
+
+ @r_square_bracket: [
+ [1,1,1]
+ [0,0,1]
+ [0,0,1]
+ [0,0,1]
+ [1,1,1]
]
View
2  index.html
@@ -47,7 +47,7 @@
<script src="js/isoblocks.js"></script>
<script>
var iso = new IsoBlocks(400); // pass the number of blocks to pre-generate
- iso.generate('.iso-blocks.', {x: 320, y: 500});
+ iso.generate('.[ iso-blocks ].', {x: 320, y: 500});
</script>
View
6 isoblocks.coffee
@@ -134,8 +134,12 @@ class IsoBlocks
else if ch is '-' then ch = 'dash'
else if ch is ';' then ch = 'semicolon'
else if ch is ':' then ch = 'colon'
+ else if ch is '/' then ch = 'f_slash'
+ else if ch is '[' then ch = 'l_square_bracket'
+ else if ch is ']' then ch = 'r_square_bracket'
- current_ch = Characters[ch]
+ # Skip if character matrix not found
+ if not current_ch = Characters[ch] then return 0
for arr, i in current_ch
for val, j in arr
if val

No commit comments for this range

Something went wrong with that request. Please try again.