View Single Post
Old 05-10-2016, 04:13 AM   #10
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Garrick:

Reaper has a bunch of off-screen spaces called "buffers" that you can draw into. They're really useful if, for instance, you have four or five separate shapes being drawn to make a knob or button or something. Rather than drawing each shape every time the script loops around, you can draw them into a buffer once and then have Reaper copy/paste that buffer onto your GUI window.

I only recently started using them, now that I'm fiddling with using .png files for graphics. Images have to be loaded from files into a buffer, which stores all of their animation frames. Par example:



-

X-Raym:

Cheers. I actually think it makes sense to think of ReaScript shapes as objects, since they're continually being redrawn. But yes, that's something I'll talk about (if I remember).
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate

Last edited by Lokasenna; 06-19-2017 at 03:37 PM.
Lokasenna is offline   Reply With Quote