mdn/js/2_javascript_objects/5_object_building_practice

5_object_building_practice

dz / mdn / js / 2_javascript_objects / 5_object_building_practice

Summary

Object building practice

Node Tree

Nodes

canvas_api
content Canvas API
children arc, beginpath, fill, fillstyle, getcontext

getcontext
content getContext()
children 2d
parents canvas_api

beginpath
content beginPath()
parents canvas_api

arc
content arc()
parents canvas_api

fillstyle
content fillstyle
parents canvas_api

fill
content fill()
parents canvas_api

2d
content "2d"
parents getcontext

requestAnimationFrame
content requestAnimationFrame(): when repeatedly run and passed the same function name, runs functions set number of times per second for a smooth animation.