Javascript Learning From Scratch -00003

deliaslan

Adem Deliaslan

Posted on September 29, 2019

Javascript Learning From Scratch -00003

****** this is the point of aligment hierarchy.
****** eğer büyük nesneyi sonra çizer ve kesişim içerisinde olursa küçük olan nesne alt katmanda kaldığından görünür olamaz.

----first drawing

rect(76, 45, 250, 300); // face

rect(126, 250, 152, 60); // mouth

rect(140, 150, 30, 30); // left eye

rect(240, 150, 30, 30); // right eye

rect(175, 345, 50, 50); // neck

// unibrow
line(140, 129, 270, 129);

output: Alt Text

----second drawing

rect(126, 250, 152, 60); // mouth

rect(76, 45, 250, 300); // face

rect(140, 150, 30, 30); // left eye

rect(240, 150, 30, 30); // right eye

rect(175, 345, 50, 50); // neck

// unibrow
line(140, 129, 270, 129);

output: Alt Text

💖 💪 🙅 🚩
deliaslan
Adem Deliaslan

Posted on September 29, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Javascript Learning From Scratch -00003
javascript Javascript Learning From Scratch -00003

September 29, 2019

Arrays in Javascript - 00014
javascript Arrays in Javascript - 00014

October 23, 2019

Functions in Javascript - 00011
javascript Functions in Javascript - 00011

October 6, 2019

Text in Javascript -00010
javascript Text in Javascript -00010

October 6, 2019