Random Color Generator Using JavaScript

Random Color Generator Using JavaScript

DarkCode

6 лет назад

37,142 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Jyoti Yadav
Jyoti Yadav - 18.05.2022 12:34

Nice video but I can any one explain me line number 23 please

Ответить
Predator Gaming
Predator Gaming - 28.02.2022 11:35

bro i didnt get ur logic

Ответить
GRYP
GRYP - 25.01.2022 03:08

Can you explaine: symbols[Math.floor(Math.random() * 16)] ?
Please!

Ответить
Rey Ban YAHUAH
Rey Ban YAHUAH - 23.11.2021 06:22

Always remember we must repent of our sins (sin is transgression The Law Of Yahuah The Father in Heaven. The Law are The Books: Genesis, Exodus, Leviticus, Numbers, & Deuteronomy). We must repent of our sins and Have Belief On Yahusha The Messiah. HE Died and Rose three days later so that we can be forgiven of our sins!

Come to HIM

Ответить
Vivia Bishnoi
Vivia Bishnoi - 21.10.2021 08:44

Great Video🙂

Ответить
b13user
b13user - 22.06.2021 03:13

Wow!!! Thanks
And how to show a defined color palette?

Ответить
On The Tech Way ( O.T.T.W )
On The Tech Way ( O.T.T.W ) - 03.05.2021 08:01

thanks you very much

Ответить
Sheikh Talha
Sheikh Talha - 30.03.2021 15:11

amazing tutorial and time saving

Ответить
VIENTO DE VIDA OFICIAL
VIENTO DE VIDA OFICIAL - 08.11.2020 01:34

Muchas gracias..!! estaba haciendo un chat grupal y no sabia como cambiar el nombre de los Usuarios y me salvaste la vida con este vídeo, te ganaste un suscriptor nuevo..!! saludos desde Buenos Aires - Argentina

Ответить
Random and Random Facts
Random and Random Facts - 03.10.2020 13:04

Really nice tutorial. You saved lots of time for me. Thank you..

Ответить
ulTimateLokal
ulTimateLokal - 17.08.2020 23:49

hi can you help me with this it says symbols undefined

Ответить
Maher Almsalmi
Maher Almsalmi - 10.08.2020 13:19

What do i do if i want to give option of picking Hexa color code or rgb color code

Ответить
Sri murni Saragih
Sri murni Saragih - 05.12.2019 04:03

Thats a awesome tutorial.....

Ответить
andmnpl
andmnpl - 16.10.2019 09:52

Why is (Math.random()*16) ? Why 16? Thank you!

Ответить
cyklop
cyklop - 19.08.2019 06:42

how do you make the page refresh automatically?

Ответить
Cognoscenti Tech World
Cognoscenti Tech World - 10.08.2019 11:26

Can you plz help me I wrote the same code word by word but my function is not working

Ответить
Yarishred
Yarishred - 18.03.2019 02:41

Thanks mate, with your solution I modified the hex colors by rgb colors and it works !!! Here's the code.

document.querySelector(".mybtn").addEventListener('click', function(){

var x = Math.floor(Math.random() * 256) + 1;
var y = Math.floor(Math.random() * 256) + 1;
var z = Math.floor(Math.random() * 256) + 1;
for(i = 0; i < 3 ; i++){
var colordiv = "rgb(" + x + " " + y + " " + z + ")";
}
document.querySelector(".class1").style.background = colordiv;
});

Ответить
Jonathan Guzmán V
Jonathan Guzmán V - 05.11.2018 05:13

Como siempre grande 👏✌🇨🇷

Ответить
Arctic SpaceFox
Arctic SpaceFox - 04.11.2018 19:42

Great videos and thanks for your undertitle. Was helpful :)

Ответить
net imeni
net imeni - 22.08.2018 18:35

Cool)

Ответить
HTML & CSS Tutorials
HTML & CSS Tutorials - 24.03.2018 20:22

Can you provide a link to the source code, bro?

Ответить
Эрмек. Султанов
Эрмек. Султанов - 24.03.2018 01:22

Thanks man, you are the best of the best ! :-)

Ответить
Brian BG
Brian BG - 24.03.2018 01:10

EXCELENTE VIDEO VEO TUS VIDEOS SON MUY BUENOS SALUDOS DESDE: COLOMBIA!

Ответить