Skip to content

Commit

Permalink
Release candidate - plenty more clean up to do
Browse files Browse the repository at this point in the history
  • Loading branch information
dimsumthinking committed Jun 4, 2015
1 parent cdce10e commit 8443f78
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import UIKit
import CoreGraphics


public class CosmicTurtle : Turtle {


Expand All @@ -9,7 +10,6 @@ public class CosmicTurtle : Turtle {
override init() {
super.init()
backgroundColor = UIColor.blackColor()
paths.append(path)
turtleIconView = UIImageView(image: UIImage(named: "RedTurtle.png"))
colors = [PenColor.Green]
}
Expand Down
2 changes: 2 additions & 0 deletions Turtle.playground/Sources/Secret Turtle Stuff/Turtle.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import UIKit
import CoreGraphics


public class Turtle: UIView {
private var showTurtle = true
private var isPenDown = true
Expand All @@ -18,6 +19,7 @@ public class Turtle: UIView {
UIColor(red: 0.2, green: 1.0, blue: 1.0, alpha: 0.1)
path.moveToPoint(center)
path.lineWidth = lineWidth
paths.append(path)
}
required public init(coder aDecoder: NSCoder) {
super.init(coder:aDecoder)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
public let turtle = CosmicTurtle()
//Turtle()
public let turtle = Turtle()
13 changes: 4 additions & 9 deletions Turtle.playground/contents.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
for _ in 1 ... 7 {
forward()
right(45)
nextColor()
forward()
left(90)
nextColor()
}
forward()
right()
forward()

//turtle
turtle

0 comments on commit 8443f78

Please sign in to comment.