색상에서 초록값을 추출합니다.
green() 는 a에서 초록값을 추출합니다 p5.Color 개체, 색상 배열 구성요소, 또는 CSS 색상 문자열.
기본적으로, green() 는 0 ~255까지 범위의 색상의 파랑값을 반환합니다. If the colorMode()가 RGB로 설정되어 있는 경우, 그것을 지정된 범위의 파랑값으로 반환합니다.
예제
구문
초록(green)(color)
매개변수
color
p5.Color|Number[]|String:
p5.Color 개체, 배열 색상 구성요소 또는 CSS색상 문자열.
반환값
숫자(Number): 초록값
This page is generated from the comments in src/color/creating_reading.js . Please feel free to edit it and submit a pull request!