Outline

┗> Event > Object > Class


A region in the Overworld that draws a colored stencil outline for all Character's inside.
Outline is an Event - naming an object outline on an objects layer in a map creates this object.
The color of a Character's outline is affected by the color of it's actor


Constructor


Outline(x: number, y: number, shape: number)

Arguments:

x: number
y: number
shape: number




Methods




Outline:drawCharacter(object: Object)

Arguments:

object: Object

The base class of all objects in Kristal.
When added to the stage, an object will be updated and rendered.



Outline:drawMask(object: Object)

Arguments:

object: Object

The base class of all objects in Kristal.
When added to the stage, an object will be updated and rendered.




Fields


Outline.shader: love.Shader

A Shader is used for advanced hardware-accelerated pixel or vertex manipulation. These effects are written in a language based on GLSL (OpenGL Shading Language) with a few things simplified for easier coding.

Potential uses for shaders include HDR/bloom, motion blur, grayscale/invert/sepia/any kind of color effect, reflection/refraction, distortions, bump mapping, and much more! Here is a collection of basic shaders and good starting point to learn: https://github.com/vrld/moonshine

Open in Browser