-
循環函數的三種調用查看全部
-
sublime text3如何調整代碼尺寸與顏色?查看全部
-
常使用的三種循環方法查看全部
-
循環調用三種方法: requestAnimFrame(fcuntion(){}); //根據電腦性能確定每次回調的時間(循環時間),更科學,提高效率 setTimeout(function(){},time); //等待再執行 setInterval(funtion(){},time); //執行再等待查看全部
-
requestAnimFrame(function(){});根據電腦性能,來確定調用循環時間。 setTimeout(function(){},time); 一定時間開始循環調用, setInterval(function(){},time); 先循環調用,等時間結束后在調用下一次循環查看全部
-
今天了解了H5的canvas元素,主要是drawImage,跟著老師完成了一個實例;canvas需要js來繪制或加載圖形。通過今天的小實踐,終于弄明白了js的一些基本概念。再有一點收獲就是對問題的分析,老師拆的很細,也很清楚。查看全部
-
// globalAlpha全局透明度 // save() // restore() 可以控制在save和restore之間任何的屬性都只作用在這塊內容之上,而對于之外的內容并不起作用查看全部
-
drawImage(img, 圖片.sx, 圖片.sy, 圖片.swidth, 圖片.sheight, canves.x, canvas.y, canvan.width, canvas.height);查看全部
-
循環調用三種方法: requestAnimFrame(fcuntion(){}); //根據電腦性能確定每次回調的時間(循環時間),更科學,提高效率 setTimeout(function(){},time); //等待再執行 setInterval(funtion(){},time); //執行再等待查看全部
-
動起來查看全部
-
重點是序列幀查看全部
-
drawImage(img, img.sx, img.sy, img.swidth, img.sheight, canves.x, canvas.y, canvan.width, canvas.height);查看全部
-
drawImage(img,x,y,width,height); ---------圖片位置,起始x軸坐標,起始y軸坐標,圖片寬度,圖片高度查看全部
-
循環調用查看全部
-
drawImage(img,x,y,width,height); ---------圖片位置,起始x軸坐標,起始y軸坐標,圖片寬度,圖片高度查看全部
舉報
0/150
提交
取消