Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying OpenFrameworks Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
OpenFrameworks Essentials

OpenFrameworks Essentials

By : Denis Perevalov
5 (7)
close
close
OpenFrameworks Essentials

OpenFrameworks Essentials

5 (7)
By: Denis Perevalov

Overview of this book

If you are a programmer, visual artist, or designer with experience in creative coding, and want to use openFrameworks to create fun, stunning, and interactive applications, this is the book for you. Basic knowledge of programming languages, such as C++, Java, Python, or JavaScript, will be enough to proceed with the book.
Table of Contents (13 chapters)
close
close
12
Index

Mathematical, timer, and conversion functions

The mathematical, timer, and conversion functions were described in Chapter 6, Animating Parameters, and Chapter 7, Distributed and Physical Computing with Networking and Arduino, and are collected in this table:

Function

Description

ofMap( x, 0, 1, 2, 3 )

This linearly maps the float x from segment [0,1] to segment [2,3].

ofMap( x, 0, 1, 2, 3, true )

This linearly maps the float x from the segment [0,1] to the segment [2,3], clamping the output value to the [2,3] range (it occurs when x is not in segment [0,1]).

ofClamp( x, 0, 1 )

This clamps the float x to the range [0,1].

ofInRange( x, 0, 1 )

This returns true if the float x lies in the segment [0,1] and returns false in the opposite case.

ofToString( 0.5 )

This converts a numeric value (integer or float) to a string.

ofGetElapsedTime()

This is the number of seconds elapsed from the application start; the returned value is float.

ofNoise( x )

This is the Perlin...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
OpenFrameworks Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon