今天第一個程式:
第一個:
PImage img;
void setup() { size(480,360); img=loadImage("0.jpg"); } int page=0; void draw() { if(page==0) { background(0); textSize(70); textAlign(CENTER,CENTER); text("Opening",240,180); } else if(page==1) { background(img); } } void mousePressed() { if(page==0) page=1; } 第二個:
PImage img; void setup() { size(640, 480); img=loadImage("640x480.png"); } void draw() { for (int i=0; i<15; i++) { for (int j=0; j<20; j++) { noFill(); rect(j*32, i*32, 32, 32); } } }
第三個:第四個:第五個:第六個:第七個:第八個:第九個:快捷鍵:
ctrl+R 執行
ctrl+T 自動排版
ctrl+N 新檔案
Git 指令
cd desktopgit clone https://github.com/mickey1132/2024-Interactioncd 2024-Interactiongit statusgit add .git statusgit config --global user.email mickylin1132@gmail.comgit config --global user.name mickey1132git commit -m WeekXXgit push
沒有留言:
張貼留言