본문 바로가기 메뉴 바로가기

Web of Philosophy

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Web of Philosophy

검색하기 폼
  • 분류 전체보기 (32)
    • Philosophy (4)
      • AI Ethics (0)
      • Stanford Encyclopedia (3)
    • Programming (22)
      • 개발 일지 (0)
      • 프로세싱 레퍼런스 (21)
      • PySide6 (1)
    • Pen Drawing (0)
    • Personal (6)
  • 방명록

[프로세싱 레퍼런스 한국어판] - class

이름 class 예제 // 클래스 HLine 으로부터 두 개의 객체(h1, h2)를 선언하고 만든다. HLine h1 = new HLine(20, 2.0); HLine h2 = new HLine(50, 2.5); void setup() { size(200, 200); frameRate(30); } void draw() { background(204); h1.update(); h2.update(); } class HLine { float ypos, speed; HLine (float y, float s) { ypos = y; speed = s; } void update() { ypos += speed; if (ypos > height) { ypos = 0; } line(0, ypos, width, ypos..

Programming/프로세싱 레퍼런스 2019. 9. 19. 20:21
[프로세싱 레퍼런스 한국어판] - catch

이름 catch 예제 BufferedReader reader; String line; void setup() { // creatWriter() 예제로부터 파일 불러오기 reader = createReader("positions.txt"); } void draw() { try { line = reader.readLine(); } catch (IOException e) { e.printStackTrace(); line = null; } if (line == null) { // 오류 또는 비어있는 파일로 인한 파일 읽기 종료 noLoop(); } else { String[] pieces = split(line, TAB); int x = int(pieces[0]); int y = int(pieces[1]); p..

Programming/프로세싱 레퍼런스 2019. 9. 19. 16:53
[프로세싱 레퍼런스 한국어판] - {} (curly braces)

이름 {} (중괄호) 예제 int[] a = { 5, 20, 25, 45, 70 }; void setup() { size(100, 100); } void draw() { for (int i=0; i < a.length; i++) { line(0, a[i], 50, a[i]); } } 설명 for 나 if 제어문 같은 함수 블록이나 문장 블록들의 시작과 끝을 지정합니다. 중괄호는 배열 선언의 초기값을 지정할 때 사용되기도 합니다. 문법 { statements } { ele0, ..., eleN } 매개변수 statements// 모든 가능한 문장의 나열 ele0, ..., eleN// 콤마로 구분되는 요소들의 집합 연관항목 () (parentheses)

Programming/프로세싱 레퍼런스 2019. 9. 13. 18:51
이전 1 2 3 4 5 6 7 ··· 11 다음
이전 다음
TAG
  • GUI
  • GUI 프로그래밍
  • java
  • metaphysics
  • Philosophy
  • processing
  • processing reference
  • PyQT
  • PySide6
  • Pyside6 사용법
  • Python
  • Qt for Python
  • StanfordEncyclopedia
  • 스탠포드철학사전
  • 철학
  • 철학사전
  • 프로그래밍
  • 프로세싱
  • 프로세싱 레퍼런스
  • 프로세싱 레퍼런스 한국어판
  • 프로세싱 레퍼런스 한글판
  • 프로세싱 사용법
  • 프로세싱 튜토리얼
  • 형이상학
more
최근에 올라온 글
글 보관함
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바