Laur's blog
Sign in Subscribe

polygon

A collection of 2 posts
Fade Colors on a Polygon using the Game Loop
color

Fade Colors on a Polygon using the Game Loop

One of the features I need to implement is to smoothly change the fill/stroke color of a polygon, like this: A manual approach In order to better understand the mechanics, I built my own fading PoC. First, one would need to build the polygon: hud = display.newGroup() -- Build
Mar 11, 2018 2 min read
Antialias a Polygon with Corona SDK
antialias

Antialias a Polygon with Corona SDK

The other day I figured I needed to draw a polygon in Corona SDK. With display.newPolygon(...), the job is extremely easy and a result like (apologies for the JPEG artefacts): It is obvious that in non retina cases, one can see the aliasing of the polygon's edges.
Feb 28, 2018 2 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost