• 2022-06-19
    在视差动画的完成过程中,利用以下代码片段完成绘制滚动的天空,请补全:context.save();context.translate(-skyOffset, 0);context.drawImage(sky, 0, 0);===【此处需填写】====context.restore();
    A: context.drawImage(sky, 0, 0);
    B: context.drawImage(sky, sky.width+2, 0);
    C: context.drawImage(sky, sky.width-2, 0);
    D: context.drawImage(sky, 0, sky.width-2);
  • C

    内容

    • 0

      The ancient people believed that ______. A: the earth was spinning on the axis of the sky B: the sky was a hollow sphere spinning around the earth C: the patterns of stars on the sky would never change D: the stars around the sky were not stationary

    • 1

      多云的天空a ____ sky

    • 2

      How to narrow the following topic “The Effects of Deforestation on Gorillas in Africa ” A: Geographical context B: Historical context C: Biological context D: Social context

    • 3

      We can infer from the passage that there were some women scientists ______. A: on board Sky Lab before 1962 B: on board Sky Lab before 1965 C: on board Sky Lab after 1962 D: on board Sky Lab after 1965

    • 4

      清除某一离屏canvas的左半部分的内容,然后绘制于当前canvas,下方需补全的代码是?// 此处为清除某一离屏canvas的左半部分的内容----- 补全代码处 -----context.drawImage(offcanvas, 0,0); A: offcanvas.clearRect(0, 0, canvas.width/2, canvas.height); B: offcanvas.getContext('2d').clearRect(0, 0, canvas.width/2, canvas.height); C: offcanvas.clearRect(0, 0, offcanvas.width/2, offcanvas.height); D: offcanvas.getContext('2d').clearRect(0, 0, offcanvas.width/2, offcanvas.height);