Some content could not load. We could not load files from our content delivery networks (CDN).
Your network may be blocking access. Ask your IT to allow loading from: .
Network domains required
We use these CDNs to deliver the files the site needs to run, please allow the following:
Domains to allow Used for
cdn.jsdelivr.net styles and JavaScript libraries.
cdnjs.cloudflare.com JavaScript libraries and icons.
code.jquery.com jQuery and jQuery UI.
pixelpad.io, cdn.pixelpad.io CDN of images, sounds, and application files.
cdn.datatables.net Interactive tables.
fonts.googleapis.com, fonts.gstatic.com Fonts stylesheets and font files.
s3.us-west-1.amazonaws.com, s3-us-west-1.amazonaws.com Project files stored on Amazon S3.
vmwan2cvlyzeklq4knz63qh6d40lewka.lambda-url.us-west-1.on.aws Amazon AWS Project play counters.
nexushud.org Learning assistant.
u45ivsqoja6u3sk7zaliv37zq40hpbxk.lambda-url.us-west-1.on.aws Amazon AWS AI character responses, when used.
  • 둘러보기
  • 배우기
  • 로그인
  • 소개
  • 게임
  • Start와 Loop
  • 오브젝트
  • 스프라이트
  • 애니메이션
  • 사운드
  • 룸
  • 입력
  • 충돌
  • 함수
  • 카메라
  • FPS
  • 텍스트
  • 그래픽
  • 필터
  • 멀티플레이어
  • AI

PixelPAD 2D - 필터

필터

필터는 셰이더라고도 하며, 그래픽 카드를 사용해 특별한 시각 효과를 만들 수 있게 해 줍니다. PixelPAD2D는 사용할 수 있는 다양한 필터를 제공합니다. 사용하려면 GameObject나 Game 오브젝트 자체에 필터를 추가하기만 하면 됩니다.

add_filter(obj: GameObject, filter : Filter) -> filter id

예시
설명
오브젝트에 필터를 추가합니다. Game 오브젝트에 설정하면 전역으로 적용됩니다.
매개변수
obj
필터를 적용할 오브젝트입니다. Game 오브젝트를 사용할 수도 있으며, 이 경우 필터가 전역으로 적용됩니다

filter
사용할 필터입니다. 예를 들어 new_glow_filter()를 호출해 새 글로우 필터를 만들 수 있습니다

반환값
필터 id입니다. 필터를 제거할 때 이 필터 id를 사용합니다

remove_filter(obj: GameObject, filterid : number) -> Filter

예시
설명
특정 오브젝트에서 필터를 제거합니다.
매개변수
obj
필터를 제거할 오브젝트입니다.

filter id
The filter id, returned from add_filter()

반환값
None

new_adjustment_filter(filterSettings : dictionary) -> Filter

예시
설명
이 필터는 GameObject 스프라이트의 전체 색상/밝기/채도를 변경할 수 있게 해 줍니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.
기본값: 2

filterSettings["gamma"]
How much to adjust the object's gamma.
Default: 2

filterSettings["saturation"]
How much to adjust the object's saturation.
Default: 2

filterSettings["contrast"]
How much to adjust the object's constrast.
Default: 1

filterSettings["brightness"]
How much to adjust the object's brightness.
Default: 1

filterSettings["red"]
How much to adjust the object's red.
Default: 1

filterSettings["green"]
How much to adjust the object's green.
Default: 1

filterSettings["blue"]
How much to adjust the object's blue.
Default: 1

filterSettings["alpha"]
How much to adjust the object's alpha.
Default: 1

반환값
필터

new_adv_bloom_filter(filterSettings : dictionary) -> Filter

예시
설명
이 필터는 GameObject의 스프라이트에 블룸을 추가할 수 있게 해 줍니다. 블룸은 실제 카메라로 촬영한 것처럼 스프라이트를 보이게 하는 효과입니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["threshold"]
The threshold of brightness at which bloom will start appearing.
Default: 0.5

filterSettings["bloomScale"]
The intensity of the effect.
Default: 1.0

filterSettings["brightness"]
How bright the bloom effect will be.
Default: 1.0

filterSettings["blur"]
The amount to blur the bloom.
Default: 8

filterSettings["quality"]
quality of the blur
Default: 4

filterSettings["kernels"]
the kernels of the blur
Default: null

filterSettings["pixelSize"]
The pixel size of the Blur
Default: 1

filterSettings["resolution"]
The resolution of the Blur.
Default: Resolution of canvas

반환값
필터

new_ascii_filter(filterSettings : dictionary) -> Filter

예시
설명
오브젝트의 스프라이트를 아스키 아트처럼 보이게 합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["size"]
The font size of the ascii text.
Default: 8

반환값
필터

new_bevel_filter(filterSettings : dictionary) -> Filter

예시
설명
오브젝트에 베벨 효과를 추가합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["rotation"]
The angle of the light in degrees.
Default: 45

filterSettings["thickness"]
The tickness of the bevel.
Default: 2

filterSettings["lightColor"]
Color of the light.
Default: 0xffffff

filterSettings["lightAlpha"]
Alpha of the light.
Default: 0.7

filterSettings["shadowColor"]
Color of the shadow.
Default: 0x000000

filterSettings["shadowAlpha"]
Alpha of the shadow.
Default: 0.7

반환값
필터

new_bulge_pinch_filter(filterSettings : dictionary) -> Filter

예시
설명
오브젝트의 스프라이트를 한 점에서 늘어난 것처럼 보이게 합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["center"]
Coordinates to set the bulge or pinch
Default: [0.5,0.5]

filterSettings["radius"]
The radius of the stretch.
Default: 100

filterSettings["strength"]
The strength of the stretch.
Default: 1

반환값
필터

new_color_map_filter(filterSettings : dictionary) -> Filter

예시
설명
다른 스프라이트를 매핑해서 스프라이트의 전체 색상을 조정합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["colorMap"]
The sprite to map the colors to.
Default: new_sprite('nosprite.png')

filterSettings["nearest"]
If it should use the nearest color to the original (True/False)
Default: False

filterSettings["mix"]
How much the colors mix.
Default: 1

반환값
필터

new_color_replace_filter(filterSettings : dictionary) -> Filter

예시
설명
한 색상을 다른 색상으로 바꿉니다
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["originalColor"]
The RGB that will be changed.
Default: [1,0,0]

filterSettings["newColor"]
The color to change to in RGB
Default: [0,0,1]

filterSettings["epsilon"]
Tolerance or sensitivity.
Default: 0.8

반환값
필터

new_convolution_filter(filterSettings : dictionary) -> Filter

예시
설명
컨볼루션 필터는 GameObject 스프라이트의 픽셀을 결합해서 행렬 컨볼루션 효과를 적용합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["matrix"]
A 9 point array that holds the values for the matrix calculations.
Default: [0.5,0.5,0.5,0.5,0,0,0,0,0]

filterSettings["width"]
The width of sprite you are using.
Default: 200

filterSettings["height"]
The height of the sprite you are using.
Default: 200

반환값
필터

new_cross_hatch_filter() -> Filter

예시
설명
크로스 해치 필터는 스프라이트 위에 흰색과 검은색 크로스 해치 패턴을 덧씌웁니다.
매개변수
None
None

반환값
필터

new_crt_filter(filterSettings : dictionary) -> Filter

예시
설명
CRT 필터는 스프라이트를 CRT 텔레비전을 통해 투사되는 것처럼 보이게 합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["curvature"]
How curved the CRT display appears.
Default: 1.0

filterSettings["lineWidth"]
The width of the CRT lines.
Default: 1.0

filterSettings["lineConstrast"]
The contrast of the lines on the rest of the sprite.
Default: 0.25

filterSettings["verticalLine"]
If it is a horizonal or vertical line (True/False)
Default: False

filterSettings["noise"]
The amount of noise to add to the filter.
Default: 0.3

filterSettings["noiseSize"]
The seed the noise filter should use.
Default: 1.0

filterSettings["seed"]
The seed for the CRT filter.
Default: 0

filterSettings["vignetting"]
How much vignetting to do, darkening the pixels closest to the sprite's corners.
Default: 0.3

filterSettings["vignettingAlpha"]
The alpha the vignetting should take on.
Default: 1.0

filterSettings["vignettingBlur"]
How blurry the vignetting should be.
Default: 0.3

filterSettings["time"]
Used to animate the filter, increase it over time to have the CRT animate.
Default: 0

반환값
필터

new_dot_filter(filterSettings : dictionary) -> Filter

예시
설명
스프라이트에 흑백 점묘 필터를 적용합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["scale"]
The scale at which the dots should be drawn.
Default: 1

filterSettings["angle"]
The angle a which the dot pattern should be.
Default: 5

반환값
필터

new_drop_shadow_filter(filterSettings : dictionary) -> Filter

예시
설명
GameObject의 스프라이트에 드롭 섀도를 추가합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["rotation"]
The angle a which the shadow should appear.
Default:45

filterSettings["distance"]
How far the shadow should go from the GameObject.
Default:5

filterSettings["color"]
The color of the shadow.
Default:0x000000

filterSettings["alpha"]
The alpha of the blur.
Default:0.5

filterSettings["shadowOnly"]
If it should only draw the shadow and not the sprite. (True/False)
Default:False

filterSettings["blur"]
How blurry the drop shadow should be.
Default:2

filterSettings["quality"]
The quality of the blur.
Default:3

filterSettings["kernels"]
The kernels of the blur
Default:null

filterSettings["pixelSize"]
the pixelSize of the blur
Default:1

filterSettings["resolution"]
The resolution of the blur
Default:Resolution of the Canvas

반환값
필터

new_emboss_filter(filterSettings : dictionary) -> Filter

예시
설명
엠보싱은 컴퓨터 그래픽 기법입니다. GameObject 스프라이트의 각 픽셀이 그림자 또는 하이라이트로 바뀝니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["strength"]
The strength of the filter.
Default: 5

반환값
필터

new_glitch_filter(filterSettings : dictionary) -> Filter

예시
설명
엠보싱은 컴퓨터 그래픽 기법입니다. GameObject 스프라이트의 각 픽셀이 그림자 또는 하이라이트로 바뀝니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["slices"]
The maximum number of slices.
Default: 5

filterSettings["offset"]
The maximum offset amount of slices.
Default: 100

filterSettings["direction"]
The angle in degree of the offset of slices.
Default: 0

filterSettings["fillMode"]
The fill mode of the space after the offset. Acceptable values: 1,2,3,4,5
Default: 0

filterSettings["seed"]
A seed value for randomizing glitch effect.
Default: 0

filterSettings["average"]
true will divide the bands roughly based on equal amounts where as setting to false will vary the band sizes dramatically (more random looking).
Default: False

filterSettings["minSize"]
Minimum size of individual slice. Segment of total sampleSize
Default: 8

filterSettings["sampleSize"]
The resolution of the displacement map texture.
Default: 512

filterSettings["red"]
Red offset
Default: [0,0]

filterSettings["green"]
Green offset
Default: [0,0]

filterSettings["blue"]
Blue offset
Default: [0,0]

반환값
필터

new_glow_filter(filterSettings : dictionary) -> Filter

예시
설명
이 필터는 특정 오브젝트의 스프라이트 윤곽을 따라 빛나는 효과를 만들 수 있게 해 줍니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["distance"]
How far out it goes. This cannot be changed after filter creation.
Default:10

filterSettings["outerStrength"]
The strength of the glow at the farthest point.
Default:4

filterSettings["innerStrength"]
The strength of the glow at the closest point.
Default:0

filterSettings["color"]
The HEX color code of the glow.
Default:0xffffff

filterSettings["quality"]
The HEX color code of the glow.
Default:0.1

filterSettings["knockout"]
Hide the texture, and only show glow.
Default:False

반환값
필터

new_godray_filter(filterSettings : dictionary) -> Filter

예시
설명
GameObject의 스프라이트에 갓레이(빛줄기)를 생성합니다. 애니메이션할 수 있습니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["angle"]
The angle at which the godrays appear.
Default:30

filterSettings["gain"]
Changes the godray's sensitivity.
Default:0.5

filterSettings["lacunarity"]
The intensity of the gaps in the godrays.
Default:2.5

filterSettings["parallel"]
If all the godrays should be parallel.
Default:True

filterSettings["time"]
The time the filter is at. Increase it over time to animate the godrays.
Default:0

filterSettings["center"]
Where the rays originate. Parallel must be set to false.
Default:[0,0]

반환값
필터

new_kawase_blur_filter(filterSettings : dictionary) -> Filter

예시
설명
GameObject의 스프라이트를 흐리게 합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["blur"]
The intensity of the blur.
Default:4

filterSettings["quality"]
The blur's quality.
Default:3

filterSettings["clamp"]
Clamps the edges of the GameObject's sprite (True/False)
Default:False

반환값
필터

new_motion_blur_filter(filterSettings : dictionary) -> Filter

예시
설명
오브젝트에 모션 블러 필터를 추가합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["velocity"]
The strength of the blur x and y
Default:[0,0]

filterSettings["kernelSize"]
The kernelSize of the blur filter. Must be odd number >= 5
Default:5

filterSettings["offset"]
The offset of the blur filter.
Default:0

반환값
필터

new_multicolor_replace_filter(filterSettings : dictionary) -> Filter

예시
설명
여러 색상 바꾸기
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["replacements"]

Default:[[ [1,0,0], [0,0,1] ],[ [0,1,0], [1,1,1] ]]

filterSettings["epsilon"]

Default:0.05

filterSettings["maxColors"]

Default:2

반환값
필터

new_old_film_filter(filterSettings : dictionary) -> Filter

예시
설명
오브젝트에 오래된 필름 효과를 추가합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["sepia"]
The amount of saturation of sepia effect, a value of 1 is more saturation and closer to 0 is less, and a value of 0 produces no sepia effect
Default:0.3

filterSettings["noise"]
Opacity/intensity of the noise effect between 0 and 1
Default:0.3

filterSettings["noiseSize"]
The size of the noise particles
Default:1.0

filterSettings["scratch"]
How often scratches appear
Default:0.5

filterSettings["scratchDensity"]
The density of the number of scratches
Default:0.3

filterSettings["scratchWidth"]
The width of the scratches
Default:1.0

filterSettings["vignetting"]
The radius of the vignette effect, smaller values produces a smaller vignette
Default:0.3

filterSettings["vignettingAlpha"]
Amount of opacity of vignette
Default:1.0

filterSettings["vignettingBlur"]
Blur intensity of the vignette
Default:0.3

반환값
필터

new_outline_filter(filterSettings : dictionary) -> Filter

예시
설명
오브젝트에 외곽선을 그립니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["thickness"]
The tickness of the outline.
Default:1

filterSettings["color"]
The color of the outline.
Default:0x000000

filterSettings["quality"]
The quality of the outline from 0 to 1, using a higher quality setting will result in slower performance and more accuracy.
Default:0.1

반환값
필터

new_pixelate_filter(filterSettings : dictionary) -> Filter

예시
설명
GameObject의 스프라이트를 픽셀화할 수 있게 해 줍니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["size"]
A two element array that holds the width/height of each pixel.
Default:[10,10]

반환값
필터

new_radial_blur_filter(filterSettings : dictionary) -> Filter

예시
설명
오브젝트에 방사형 블러를 추가합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.
기본값:

filterSettings["angle"]
Sets the angle of the motion for blur effect.
Default:0

filterSettings["center"]
The center of the radial.
Default:[0,0]

filterSettings["kernelSize"]
The kernelSize of the blur filter. But be odd number >= 3
Default:5

filterSettings["radius"]
The maximum size of the blur radius, -1 is infinite
Default:-1

반환값
필터

new_reflection_filter(filterSettings : dictionary) -> Filter

예시
설명
스프라이트의 반사를 만들 수 있게 해 줍니다. 애니메이션할 수 있습니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["mirror"]
If the reflection should be mirrored.
Default:true

filterSettings["boundary"]
The vertical position where the reflection should occur.
Default:0.5

filterSettings["amplitude"]
The strength of the starting/ending positions of the waves.
Default:[0,20]

filterSettings["waveLength"]
The length of the starting/ending positions of the waves.
Default:[30,100]

filterSettings["alpha"]
The alpha values of the starting/ending positions of the waves.
Default:[1,1]

filterSettings["time"]
The time the filter is at. Increase over time to animate.
Default:0

반환값
필터

new_rgb_split_filter(filterSettings : dictionary) -> Filter

예시
설명
오브젝트의 RGB를 분리하고 각 RGB 값에 오프셋을 더합니다
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["red"]
Red offset
Default: [-10,0]

filterSettings["green"]
Green offset
Default: [0, 10]

filterSettings["blue"]
Blue offset
Default: [0, 0]

반환값
필터

new_shockwave_filter(filterInfo : dictionary) -> Filter

예시
설명
한 점에서 퍼져 나가는 애니메이션 충격파 효과를 만듭니다.
매개변수
filterInfo
필터의 데이터를 담은 딕셔너리입니다.

filterInfo["center"]
Where to center the shockwave. Center is relative to the Sprite's top left corner.
Default:[0.5,0.5]

filterInfo["amplitude"]
The strength of the shockwave
Default:.30

filterInfo["wavelength"]
The wave length of the shockwave.
Default:160

filterInfo["speed"]
The speed at which the shockwave moves out if animated using time.
Default:500

filterInfo["brightness"]
The brightness of the shockwave.
Default:1.0

filterInfo["radius"]
The radius of the shockwave when starting.
Default:-1

filterInfo["time"]
The time at which the filter is at. Increase overtime to animate.
Default:0

반환값
필터

new_simple_lightmap_filter(filterSettings : dictionary) -> Filter

예시
설명
스프라이트를 사용해 오브젝트에 라이트맵을 추가합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.
기본값:

filterSettings["texture"]
The sprite to use as a lightmap
Default: new_sprite('nosprite.png')

filterSettings["color"]
An RGBA array of the ambient color
Default: [1, 0, 0, 1]

filterSettings["alpha"]
Default alpha set independent of color
Default: 1

반환값
필터

new_tilt_shift_filter(filterSettings : dictionary) -> Filter

예시
설명
틸트 시프트 필터 효과를 추가합니다
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["blur"]
How much to blur the effect.
Default:100

filterSettings["gradientBlur"]
The gradient of the blur's effects.
Default:600

반환값
필터

new_twist_filter(filterSettings : dictionary) -> Filter

예시
설명
오브젝트에 트위스트 필터를 추가합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["radius"]
How wide to twist.
Default:200

filterSettings["angle"]
The angle of the twist
Default:4

filterSettings["padding"]
Padding for filter area.
Default:20

반환값
필터

new_zoom_blur_filter(filterSettings : dictionary) -> Filter

예시
설명
스프라이트에 줌 블러 필터를 추가합니다.
매개변수
filterSettings
필터의 설정을 담은 딕셔너리입니다.

filterSettings["strength"]
The strength of the zoom.
Default:0.1

filterSettings["center"]
Where to center to zoom. [0,0] is the top left corner of the sprite.
Default:[0.5,0.5]

filterSettings["innerRadius"]
The radius of the inner unzoomed area.
Default:0

filterSettings["radius"]
The outer radius of the filter. -1 for infinite.
Default:-1

반환값
필터
PixelPAD
PixelPAD 소개
Discord
Arm 빌드 3.0.1013
자료
문서
EULA
개인정보 처리방침
문의하기
hello@pixelpad.io
한국어
English Deutsch Español Français Português 日本語 简体中文 繁體中文 한국어
© 2026 All Rights Reserved.
PixelPAD.io
Logo

다시 오신 것을 환영해요!

로그인하고 계속 만들어 보세요

로그인하거나 가입해서 프로젝트를 저장하세요.
비밀번호를 잊으셨나요?

계정이 없으신가요?

Logo

계정 만들기

PixelPad에서 수천 명의 창작자와 함께하세요

로그인하거나 가입해서 프로젝트를 저장하세요.

이미 계정이 있으신가요? 로그인

Logo

교육자로 가입

창의적인 도구로 학생들의 역량을 키워 주세요

교실을 만들고 학생들의 진도를 확인하세요.

이미 계정이 있으신가요? 로그인