[C3][Plugin] Random Color

For discussion and help with the Construct 3 Plugin SDK

Post » Fri Apr 28, 2017 4:16 pm

Hello everyone! This is my first plugin, Random Color. It’s based on the David Mer­field’s function (link). Like the original function, my plugin gen­er­ates at­trac­tive col­ors and pro­duces bright col­ors with a rea­son­ably high sat­u­ra­tion.

Demo
Web: link to view
C3P file: link to download

Plugin
Version 1.0: download c3addon

Properties
  • Hue: controls the hue of the generated color (random, red, orange, yellow, green, blue, purple, pink, monochrome).
  • Luminosity: controls the luminosity of the generated color (random, bright, light, dark).
  • Seed (optional): an integer or string which when passed will cause to return the same color each time.
  • Format: the format of the generated color (integer, rgb, rgba, rgbArray, hsl, hsla, hslArray, hex, hsv, hsvArray).
  • Alpha: The alpha amount of rgba and hsla formats: default random.

Actions
  • Set Properties: set the properties for generate a random color (hue, luminosity, format)
  • Set Alpha: set the alpha amount of rgba and hsla formats (0-100).
  • Set Seed: set an integer or string which when passed will cause to return the same color each time.

Expressions
  • getRandomColor: generate a random color (use instance properties).
  • getRandomColor(hue, luminosity, format): generate a random color (use custom value).
  • getSeedColor(seed): generate a random color based to a seed.
B
23
S
9
G
13
Posts: 149
Reputation: 8,842

Post » Sun Apr 30, 2017 2:55 am

hello,

any chance to get it C2 compatible?
cool stuff here.
B
80
S
29
G
188
Posts: 259
Reputation: 100,179

Post » Tue May 23, 2017 8:26 am

totoe wrote:hello,

any chance to get it C2 compatible?
cool stuff here.


I'm sorry, but for the moment I'm a bit busy. And I never did a plugin for c2. This is my first ever plugin.
Maybe in a few weeks, when I have some time.
B
23
S
9
G
13
Posts: 149
Reputation: 8,842

Post » Wed Nov 08, 2017 12:28 am

bump for a c2 version.
:oops:
B
80
S
29
G
188
Posts: 259
Reputation: 100,179

Post » Sun Apr 15, 2018 11:39 am

Backported it to C2
https://mega.nz/#F!Y11CEDxC!SvafIUuHZaQLICSIpn4n7w

Don't mind the skymen at the beginning of the files. It's automated naming. I don't take credit for making the plugin. I only backported it.
Image
B
44
S
10
G
2
Posts: 252
Reputation: 3,984

Post » Tue Apr 17, 2018 4:11 pm

el3um4s wrote:Hello everyone! This is my first plugin, Random Color. It’s based on the David Mer­field’s function (link). Like the original function, my plugin gen­er­ates at­trac­tive col­ors and pro­duces bright col­ors with a rea­son­ably high sat­u­ra­tion.


Nice job.
Thank you!
B
34
S
9
G
4
Posts: 253
Reputation: 5,367


Return to Plugin SDK

Who is online

Users browsing this forum: luckyrawatlucky and 1 guest