Skip to content

MultiPain/Gideros_SuperShape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gideros_SuperShape

SuperShape_prview

An implementation of Superellipse and Supershapes.

Usage

local shape = SuperShape.new([type, color, numberOfPoints])
  1. type(string): one of SuperShape's types [default: SuperShape.SHAPE]:
  • SuperShape.SHAPE - Supershape
  • SuperShape.ELLIPSE - Superellipse
  • SuperShape.CIRCLE - Regular circle
  • SuperShape.HEART - Heart shape
  1. color(number): shape color [default: 0xffffff]
  2. numberOfPoints(number): Number of edge points [default: 128]
shape:build(params)

params - a set of params that depends on shape type

  1. SuperShape.SHAPE - r, a, b, m, n1, n2, n3 (see Supershape for more detail)
  2. SuperShape.ELLIPSE - a, b, m, n (see Superellipse for more detail)
  3. SuperShape.CIRCLE - r (radius)
  4. SuperShape.HEART - r (radius SCALE)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages