사용자 삽입 이미지


사용자 삽입 이미지

사용자 삽입 이미지



/***************************************
 * 2008.4 Dongyoon Park
 * cre8ive.park@gmail.com
 * http://www.cre8ive.kr
 ****************************************/

// declare and initialize variables.
int tintVar=100, tintIncrease = 10;
int colorVar1, colorVar2, colorVar3, opacityVar, txtSize, txtVar;
int xpos, ypos;
String strText1 = "sadi Communication Design";
char letter = 'A';
int  deg = 0;
PFont font;


void setup()
{
  size(800,500);    // set screen size.
  background(0);  // set background color.
  smooth();
  frameRate(200);
  font = loadFont("Myriad-BdWeb-70.vlw"); 
}

void draw()
{
  colorVar1 = int(random(255));
  colorVar2 = int(random(255));
  colorVar3 = int(random(255));
  opacityVar = int(random(20,100));
  txtSize = int(random(30,300));
  txtVar = int(random(-50,50));

  xpos = int(random(width-100));
  ypos = int(random(height));
  fill(colorVar1,colorVar2, colorVar3, opacityVar);
  textFont(font);
  textSize(txtSize);

  letter += txtVar;
  text(letter, xpos, ypos);

}

Posted by 알 수 없는 사용자

사용자 삽입 이미지


/***************************************
 * 2008.4 Dongyoon Park
 * cre8ive.park@gmail.com
 * http://www.cre8ive.kr
 ****************************************/

void setup()
{
  size(800,500);    // set screen size.
  background(0);  // set background color.
  smooth();
}

// declare and initialize variables.
int tintVar=100, tintIncrease = 10;
int colorVar1, colorVar2, colorVar3, opacityVar;
int xpos, ypos;

String strText1 = "sadi Communication Design";
PFont font;
font = loadFont("Myriad-BdWeb-70.vlw"); 

void draw()
{

  colorVar1 = int(random(255));
  colorVar2 = int(random(255));
  colorVar3 = int(random(255));
  opacityVar = int(random(100));
 
  xpos = int(random(width-100));
  ypos = int(random(height));

  fill(colorVar1,colorVar2, colorVar3, opacityVar);
  textFont(font);
 
  text(strText1, xpos, ypos);
 
}

Posted by 알 수 없는 사용자
사용자 삽입 이미지

void setup() {
size(400,200);
noStroke( );
smooth();
background(0);
}
float randomColor = random(0,360);
int cplus=1;
float randomR = random(0,90);
float offset= 100;
float scaleVal = 90;
float angleInc=PI/18.0;
float angle = 0.0;

void draw () {

randomColor = randomColor + cplus;
if ( (randomColor<0) || (randomColor)>360)
cplus=-cplus;

for (int x = 0; x <= width ; x += 10 ){
float y = offset + (sin(angle) * scaleVal);
fill(255);
ellipse(x,y,7,7);
y = offset + (cos(angle)*scaleVal);
fill(randomColor,100,100);
ellipse(x,y,7,7);
angle += angleInc;

}
}
Posted by 알 수 없는 사용자
출석:김정운,김상은,양정애,김요한,유승환,김남윤,김동신,최주영,김기창,이원희,공혜선,변수홍
지각:김수정
컨셉: 인형 맞추기

사용자 삽입 이미지

공을 던지면 공을 던지는 소리가 나고 인형을 맞추면 그에 관한 소리가 난다.
공의 움직임에 맞추어 소리가 나게 하기 위해 움직임을 인식하는 소스를 짜고 조건을 만족했을 때
소리가 나게끔 했음.
사용자 삽입 이미지


trigger의 추가 설명
사용자 삽입 이미지


오른쪽에서 왼쪽으로 신호가 흐르는 것과 연산오브젝트의 특성을 활용해 최신 숫자에서 이전 숫자를 빼는 방법

다음 시간엔 각자 하고 싶은 것들 가져오기
Posted by 알 수 없는 사용자

우측 메뉴에서 program - study - processing code share 에 과제 및 참고코드들 올려놓았습니다.
앞으로 과제는 여기에 각자 파일을 올리는것으로 하겠습니다.
올릴때는 꼭 실행화면의 캡쳐 이미지도 함께 올려서 어떤 코드인지 파악이 쉽도록 합시다~

08.04.12 출석
----------------------------------------------------------------------------------------------
모델샵 교육 참석한분이나 수정이 필요하신 분들은 cre8ive.park@gmail.com 으로 메일주세요-

    4.12
학과(학년) 이름 출석 과제
CD2 박동윤 o o
CD2 정용채 지각  
CD2 김규상 어머니생신  
CD2 우준형 o  
FD1 류예림 모델샵   
FD1 최윤정 모델샵  
FD1 심혜림 o  
PD1 한재석 o o
PD1 안성민 o  
PD1 서리진 o  
PD1 박정은 o  
PD1 김지연 o  
PD1 형예명 o o
CD1 전정민 o  
CD1 김지인 모델샵  
CD1 함경석 o o
CD1 이현주 o  
CD1 김재인    
CD1 설승재 o o
CD1 김유정   o
CD1 이정은 o o
CD1 박근명 o  



모임내용
----------------------------------------------------------------------------------------------
- 교재 스터디 진행 (~196p) : 서리진, 이정은, 이현주, 설승재, 전정민, 함경석
- 중요한 내용 :
   112p - font 만들기, typography 활용하기
   125p - sin / cos 활용 spiral 그리기
   127p - random 함수 사용법
   133p - translate() 를 사용한 0점 기준 좌표 변경,
            pushMatrix() 로 원래 좌표계 저장, popMatrix() 로 좌표계 복구.
   137p - rotate()
   181p - 자신만의 함수(function) 만들고 사용하기
 

- 개인별 과제 리뷰



공지사항
----------------------------------------------------------------------------------------------
- 늦거나 참석하지 못하신분들은 꼭 공부하셔서 오늘 진행상황까지 진행 하시기 바랍니다.
   (주위 멤버들 적극 활용)
- 당연한 이야기지만 교재책은 꼭 반드시 읽어 보시고, 스터디한 내용들은 꼭 직접 쳐보고 실행할것!
   (눈으로만 봐서는 절대 안됨 ^^;)
- 참석을 못하게 되는 분들은 미리 알려주시고, 과제를 이메일로 꼭 제출해 주기 바랍니다.
- 차주 발표하는 멤버 이외의 멤버들도 당연히 책을 읽어와야 됩니다.  
   (공부할 내용도 모른채 강의를 듣는 개념으로 오면 안됨)
 



다음주 발표
----------------------------------------------------------------------------------------------
한재석, 김지연, 박정은, 안성민 (-276p)
프로젝터가 교실에 설치되었으므로, 빌릴필요 없습니다-

이번주과제
----------------------------------------------------------------------------------------------

 오늘 배운 내용 활용, 자유롭게 만들어오기

- Typography 를 활용한 visual 작업
- random 함수를 활용한 우연의 효과 활용
- sin, cos을 활용한 소용돌이 곡선
- rotate(), translate() 를 활용한 기울기 및 좌표 다양한 변화
- 특정 기능부분을 묶어서 함수로 만들기

- 참고코드

/***************************************
  2008.4.12 Dongyoon Park
 
cre8ive.park@gmail.com
  http://www.cre8ive.kr
****************************************/

// 사용할 변수들 선언
int x=0, y=0, sizeVar=10;
int colorVar1=1,colorVar2=100,colorVar3=250;
int sizeMax = 100; // 원의 크기는 100까지만...

void setup()
{
  size(800,350);    // set screen size.
  background(255);  // set background color.
  fill(0);          // I want to fill objects with black.
  smooth();
  noStroke();       // objects with no outlines.
  frameRate(180);
}


void draw()
{
  // random 을 이용해서 임의의 값들 얻어내기
  x = int(random(width));
  y = int(random(height));
  sizeVar = int(random(sizeMax));
  colorVar1 = int(random(255));
  colorVar2 = int(random(255));
  colorVar3 = int(random(255));

 
  fill(colorVar1,colorVar2, colorVar3, x%100); // 얻어낸 값들로 임의의 컬러 채우기
  ellipse(x, y, sizeVar, sizeVar); // 얻어낸 값들로 임의의 위치에 임의의 크기로 원 그리기

}


<실행 결과>

사용자 삽입 이미지


stroke(x,y,x+100,y+100); 라는 코드를 추가해준 결과 - 아웃라인이 생깁니다
사용자 삽입 이미지

Posted by 알 수 없는 사용자