Skip to content

Change the background color of the HTML5 app without messing with the index.html source.

License

Notifications You must be signed in to change notification settings

develephant/corona-html5-bg-color-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Corona HTML5 Background Plugin

Change the background color of the HTML5 app page without messing with the index.html source.

Download

Download the plugin archive by clicking here.

Install

Unzip the archive and place plugin/bgcolor_js.js and plugin/bgcolor.lua in the root directory of your project.

Require

local bgColor = require("bgcolor")

API

setColor

Set by HTML color name.

bgColor.setColor("darkorange")

setHex

Set by hex value.

bgColor.setHex("#f97c00")

setRGBA

Set with RGB + Alpha.

bgColor.setRGBA(150, 150, 150, .30)

Arguments

  • red (0-255)
  • green (0-255)
  • blue (0-255)
  • alpha (0-1)

©2018 C. Byerley (develephant)

About

Change the background color of the HTML5 app without messing with the index.html source.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published