Kuribo64
Views: 19,981,177 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
04-16-24 06:45 PM
Guest:

0 users reading JavaScript Help! | 1 bot

Main - Computers and technology - JavaScript Help! Hide post layouts | New reply


Yoshimaster96
Posted on 04-27-15 01:23 PM Link | #59301
I'm trying to average 2 colors, but it gives a strange result. Any ideas?

Link to JSFiddle

My Youtube Channel:
Yoshimaster96smwc
Some layout tips/code!

-Yoshimaster96

Arisotura
Posted on 04-27-15 01:39 PM Link | #59303
It's weird, your code looks correct. What's the thing supposed to look like?

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

Yoshimaster96
Posted on 04-27-15 02:56 PM (rev. 2 of 04-27-15 03:40 PM) Link | #59304
I'm averaging the colors from a reflection map and a lighting map.

[EDIT]

Figured it out, I forgot to recalculate X and Y after I modified them.

New Link

My Youtube Channel:
Yoshimaster96smwc
Some layout tips/code!

-Yoshimaster96


Main - Computers and technology - JavaScript Help! Hide post layouts | New reply

Page rendered in 0.025 seconds. (2048KB of memory used)
MySQL - queries: 29, rows: 204/204, time: 0.012 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.