Created
May 12, 2017 06:51
-
-
Save oliverbenns/80c81bf4303114f61782239ee63d1b08 to your computer and use it in GitHub Desktop.
Horizontal + vertical square counter
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
const countHoriz = 24; | |
// 16, 24 | |
const width = 960; | |
const height = 600; | |
const squareSize = width / countHoriz; | |
const countVert = height / squareSize | |
console.log("VERTICAL COUNT:", countHoriz); | |
console.log("HORIZONTAL COUNT", countVert); | |
console.log("SQUARE SIZE", squareSize); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment