Forked from: FumioNonaka's Drawing squares on Canvas with for loop View Diff (14)

Fork
0
Fav
0
View
286
  • Play

Fullscreen

Smart Phone

  • Readme
  • ES6 20 lines
  • HTML 2 lines
  • CSS 0 lines

ECMAScript 6でforループは使わずに任意の要素数の配列をつくる

色相が変化した小さい正方形を、Canvasにタイル状に並べる。引数は小さい正方形の一辺の長さと、縦横に並べる個数。 ECMAScript 6のArray.fill()メソッドを用いた。


Based on "Drawing squares on Canvas with for loop", for loops are replaced with Array methods and ECMAScript 6 sytax is used.

  • ES6: Drawing squares on Canvas with Array methods
  • ES6: Drawing squares on Canvas with Array methods

play

Complete!

Description What kind of game?

Control Device

jsdo.it websocket controller

Mouse

keyboard

smartphone

Fullscreen

Default Panel

Size

  • Width: px
  • Height: px

code

QR Code

Discussion

Questions on this code?

Tags