Wiki

Clone wiki

mod_color / Home

awcolor: Plugin API Docs

| | | -------------------- | --------------------------------------------------------------- | Corona Store | awcolor | Keywords | color

Overview

The awcolor plugin can be used in your Corona project. It provides you with an extended color capabilities

The current version on the plugin store for Corona SDK is 1.0. You can download our current version anytime by using this git.

Version History

Version Details
1.0 First release. includes functions; fromString, fromRGB, fromHex, random, setColorListLUA

Syntax

local awcolor = require "plugin.awcolor"

Functions

awcolor.fromString()
awcolor.fromRGB()
awcolor.fromHex()
awcolor.random()
awcolor.setColorListLUA()

Project Configuration

Corona Store Activation

In order to use this plugin, you must activate the plugin at the Corona Store.

SDK

When you build using the Corona Simulator, the server automatically takes care of integrating the plugin into your project.

All you need to do is add an entry into a plugins table of your build.settings. The following is an example of a minimal build.settings file:

settings =
{
    plugins =
    {
        -- key is the name passed to Lua's 'require()'
        ["plugin.awcolor"] =
        {
            -- required
            publisherId = "com.aaronsserver",
        },
    },      
}

Enterprise

If you have activated this plugin, you can download this plugin from the corresponding plugin page in the Corona Store.

Platform-specific Notes

This plugin has no platform dependencies

Resources

Sample Code

You can access sample code here.

Support

More support is available from the PUBLISHER_NAME team:

Updated