Skip to content

Commit f8b3519

Browse files
committed
add pixelated option
1 parent 07c814a commit f8b3519

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/_base.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,11 @@ VANTA.VantaBase = class VantaBase {
166166
zIndex: 0,
167167
top: 0,
168168
left: 0,
169-
background: ''
169+
background: '',
170170
})
171+
if (this.options.pixelated) {
172+
canvasEl.style.imageRendering = 'pixelated'
173+
}
171174
Object.assign(canvasEl.style, opts)
172175
canvasEl.classList.add('vanta-canvas')
173176
}

0 commit comments

Comments
 (0)