Wiki

Clone wiki

Core / pushStyle

Back to Beyond the Codea in-app reference


FunctionIconFunction-Small.png pushStyle() function

Introduction

Codea's built-in reference documents the pushStyle() function, and that it preserves on a stack styles set with:

fill() noFill()
stroke() noStroke()
tint() noTint()
strokeWidth()
lineCapMode()
ellipseMode()
rectMode()
spriteMode()
smooth() noSmooth()

The pushStyle() function also preserves styles set with:

font()
fontSize()
pointSize()
textAlign()
textMode()
textWrapWidth()

Updated