Colour cycling plugin/ JavaScript source code

Get help using Construct 2

Post » Wed Jan 09, 2013 9:08 pm

Hi all

I found this example of html5 colour cycling a while back. http://www.effectgames.com/demos/canvascycle/

The developer kindly included the source code in JavaScript here http://www.effectgames.com/effect/article.psp.html/joe/Old_School_Color_Cycling_with_HTML5

I can't program for the life of me, yet, but maybe one of our talented plugin devs could take aloof and make my dreams come true for a colour cycling plugin for c2? :D


Thanks!

Ys
B
16
S
3
G
3
Posts: 66
Reputation: 3,629

Post » Wed Jan 09, 2013 11:23 pm

These images are made by Deluxe Paint are converted from C++ to JS which make Amiga IFF / ILBM can be read in JSON.

Who would make images with 8-bit color cycling in Deluxe Paint?

It's impossible, better make a workaround using mask animations and particles
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Thu Jan 10, 2013 12:17 am

@Joannesalfa

wut?

All you're doing is replacing one color with another. All this blah blah blah about C++, and Deluxe Paint has nothing to do with the actual implementation.
In fact you could do it with the Canvas plug. It would be a long drawn out process to set up, and not recommended for images larger than the demo, but still quite doable.
Image Image
B
161
S
48
G
89
Posts: 7,345
Reputation: 66,245

Post » Thu Jan 10, 2013 2:04 am

[QUOTE=newt] @Joannesalfa

wut?

All you're doing is replacing one color with another. All this blah blah blah about C++, and Deluxe Paint has nothing to do with the actual implementation.
In fact you could do it with the Canvas plug. It would be a long drawn out process to set up, and not recommended for images larger than the demo, but still quite doable.[/QUOTE]

@newt

I was talking about Deluxe Paint files (Amiga IFF / ILBM files) needs to be converted with script for HTML5 app. These files come Color Cycling system.

(I didn't like your comment)Joannesalfa2013-01-10 02:07:47
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Thu Jan 10, 2013 2:48 am

Oh Effect Games. I was very enolved with this engine and project from it's beginning to it's end. Just be aware the whole source (engine, site tools, etc) is free for any use here: https://github.com/jhuckaby/Effect-Games . I got the site/tools mostly running on Ubuntu so anyone let me know if you need any assistance.

This was a great engine and site but it's not "technically" HTML5. Effect games used DHTML since it was created before the canvas was a stable taget to develop against.

It was also very cool to create games with the online tools and online IDE; which meant you could develop games anywhere without installing anything. Effect Games is very much missed... basspenguin2013-01-10 02:49:40
B
37
S
9
G
7
Posts: 143
Reputation: 6,017

Post » Thu Jan 10, 2013 5:31 am

Yeah, i missed EffectGames, i had no idea why they abandoned
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Thu Jan 10, 2013 11:08 am

Furthermore, the canvas has no concept of "indexed color palettes" for images.
Every Canvas is based on 32 pixels (8 bit for R, G, B an A respectively).
So if you want to change the color of one pixel, you need to access that specific pixel in memory. No possibility to just change the palette.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Thu Jan 10, 2013 11:14 pm

Sooooooo, no?

I have literally, absolutely no idea what you guys are talking about.

I am exactly construct 2's target market.

:D

B
16
S
3
G
3
Posts: 66
Reputation: 3,629

Post » Fri Jan 11, 2013 7:21 am

[QUOTE=Joannesalfa]

better make a workaround using mask animations and particles[/QUOTE]
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613


Return to How do I....?

Who is online

Users browsing this forum: Muini, plinkie, Yahoo [Bot] and 17 guests