A Pen by Zachary Beyer on CodePen.
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 SpriteKit | |
import XCPlayground | |
//SpriteKit and XCPlayground are required modules | |
//ZBeyer October 31st 2016 | |
/** | |
nodeGenerator | |
- Parameter size: The pixel size of the circle within the clock | |
- Parameter point: The x and y cooridantes within the scene where the circle will be placed | |
- Parameter scene: The scene in which the node will be placed | |
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 SpriteKit | |
import XCPlayground | |
//SpriteKit and XCPlayground are required modules | |
//ZBeyer October 31st 2016 | |
/** | |
nodeGenerator | |
- Parameter size: The pixel size of the circle within the clock | |
- Parameter point: The x and y cooridantes within the scene where the circle will be placed | |
- Parameter scene: The scene in which the node will be placed | |
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 SpriteKit | |
import XCPlayground | |
//SpriteKit and XCPlayground are required modules | |
//ZBeyer October 31st 2016 | |
/*:Clock Face | |
# Clock Face | |
This Playground Uses Spritekit to generate the points of a clock face (where there are twelve equally spaced nodes in a circle) | |
*/ | |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
A Pen by Captain Anonymous on CodePen.
A Pen by Zachary Beyer on CodePen.
A Pen by Zachary Beyer on CodePen.
A Pen by Zachary Beyer on CodePen.
A Pen by Zachary Beyer on CodePen.
NewerOlder