MRaster examples 22.0.0.0
Image Processing Library
Loading...
Searching...
No Matches
demo_corners.cpp File Reference

Demonstrate the ramCanvas corners API. More...

Go to the source code of this file.

Detailed Description

Demonstrate the ramCanvas corners API.

Author
Mitch Richling https://www.mitchr.me
Standards
C++20
Details

This code demonstrates one way to use an SDF function to color pixels using the "corners" API in ramCanvas. Note that the methodology show is inefficient because it evaluates most coordinates four times, but the point here is to demonstrate the API... It also demonstrates the mjr::math::esgn library which is part of MRMathCPP (https://github.com/richmit/MRMathCPP/).

Definition in file demo_corners.cpp.