- Posts: 166
- Joined: Sun Feb 07, 2016 12:41 am
- Location: chinatowns everywhere
Hello
all
I'm a happy Resolve editor and am trying to learn more about the power of FUSION
I'd like to see an example or two of how to programmatically draw on a frame
and if possible how to draw on multiple frames over time
i'm looking for the easiest
most simple way to draw a point or a line on a frame
(and then increment over time)
there seems to be a number of potential ways?
scripts / macros / expressions / fuses / openGL
(also lua vs python?)
all of which I'd like to see examples of
but to start just trying to see a simple 2D solution
I offer below a Processing (or p5) example
( see https://p5js.org/examples/structure-setup-and-draw.html )
imagine the task at hand is to develop a HUD for some comic book movie
and this drawn line is one of many that would be built up to create the full GFX
all
I'm a happy Resolve editor and am trying to learn more about the power of FUSION
I'd like to see an example or two of how to programmatically draw on a frame
and if possible how to draw on multiple frames over time
i'm looking for the easiest
most simple way to draw a point or a line on a frame
(and then increment over time)
there seems to be a number of potential ways?
scripts / macros / expressions / fuses / openGL
(also lua vs python?)
all of which I'd like to see examples of
but to start just trying to see a simple 2D solution
I offer below a Processing (or p5) example
( see https://p5js.org/examples/structure-setup-and-draw.html )
imagine the task at hand is to develop a HUD for some comic book movie
and this drawn line is one of many that would be built up to create the full GFX
- Code: Select all
let y = 100;
// The statements in the setup() function
// execute once when the program begins
function setup() {
// createCanvas must be the first statement
createCanvas(720, 400);
stroke(255); // Set line drawing color to white
frameRate(30);
}
// The statements in draw() are executed until the
// program is stopped. Each statement is executed in
// sequence and after the last line is read, the first
// line is executed again.
function draw() {
background(0); // Set the background to black
y = y - 1;
if (y < 0) {
y = height;
}
line(width/4, y, (width/2), y);
}
MacBook Pro (16-inch 2019)
OS X 13.3.1 (a) / 18.5 beta Resolve Studio - DeckLink Studio 4k via Thunderbolt3
64GB - AMD Radeon Pro 5500M 8GB
10Gb ethernet network
OS X 13.3.1 (a) / 18.5 beta Resolve Studio - DeckLink Studio 4k via Thunderbolt3
64GB - AMD Radeon Pro 5500M 8GB
10Gb ethernet network