CP2: Offscreen Buffer – Image Filters
Автор: Jeff Thompson
Загружено: 2021-02-24
Просмотров: 350
Описание:
Sometimes we don't want to manipulate the pixels onscreen directly: for example, if we wanted to create a user interface for editing images and applied a grayscale filter, we wouldn't want the user interface's pixels to be modified too! To solve this, we can create a new image, manipulate its pixels, then display the results when done.
RUNNING SLOW?
While we are using the pixels[] instead of get() and set(), this will still run pretty slow on larger images. This is because we're doing a lot of processing each frame! Languages like OpenGL that run on the graphics card are optimized for this and will be much faster.
👩💻 https://editor.p5js.org/jeffThompson/...
ALL THE VIDEOS IN THIS UNIT
🎥 • CP2: Week 03 (Image Filters)
OTHER USES?
💡 You may want to manipulate the pixels of an image but keep the original data, as in our example here
💡 You can work on images waaaaayy to big to show onscreen, for example ones that you want to be able to print at high resolution – just save the results to a file and view it
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: