Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
Atsuya Sato edited this page Nov 30, 2018 · 5 revisions

Color

background(_ color: UIColor)

background(_ r: CGFloat, _ g: CGFloat, _ b: CGFloat, _ a: CGFloat = 255)

Available

iOS, OSX

Examples

background(255, 204, 0)

Description


clear()

Available

iOS, OSX

Examples

clear()

Description

This function clears everything in a ProcessingView object.


fill(_ color: UIColor)

fill(_ r: CGFloat, _ g: CGFloat, _ b: CGFloat, _ a: CGFloat = 255)

Available

iOS, OSX

Examples

fill(204, 102, 0)
rect(30, 20, 55, 55)

Description


stroke(_ color: UIColor)

stroke(_ r: CGFloat, _ g: CGFloat, _ b: CGFloat, _ a: CGFloat = 255)

Available

iOS, OSX

Examples

stroke(204, 102, 0)
rect(30, 20, 55, 55)

Description


strokeWeight(_ weight: CGFloat)

Available

iOS, OSX

Examples

strokeWeight(1)
line(20, 20, 80, 20)
strokeWeight(4)
line(20, 40, 80, 40)
strokeWeight(10)
line(20, 70, 80, 70)

Description


Clone this wiki locally