美文网首页
Rainbow fileter

Rainbow fileter

作者: 小慷 | 来源:发表于2017-08-01 20:41 被阅读15次

    2017-08-01(二) 蓋樓[225]

    Rainbow fileter

    1.卡點:怎麼在Y方向,做分割,然後在每一等份中,做出紅橙黃綠藍靛紫的區別,並且向X方向展開,我在Conditional Execution 的 4:49找到概念,然後這裡,先不貪多,只先實驗紅色(1/7 塊),看可不可以成功,之後再展開。

    1. Start with the image you want to change.
    1. Figure out the width of the image.
    1. For each pixel in the image:

    Get the x-coordinate for that pixel
    If the pixel’s x-coordinate is less than one-third of the image’s width, set the pixel’s red value to 255.

    If the pixel’s x-coordinate is between one-third and two-thirds of the image’s width, set the pixel’s green value to 255.

    If the pixel’s x-coordinate is more than two-thirds of the image’s width, set the pixel’s blue value to 255.

    1. Print the image.

    2.如果成功展開,就把miniproject-challenge 提供的彩虹濾鏡的code
    ,一一填上。

    4. 結果圖結果圖

    相关文章

      网友评论

          本文标题:Rainbow fileter

          本文链接:https://www.haomeiwen.com/subject/mwrslxtx.html