Skip to main content

How to combine the Makeup API and Beauty API features

danger

This feature is deprecated. We recommend you to use Prefabs

As you can notice, both the Makeup API and Beauty API are using the same Face Filter. As a result, it is possible to combine their features in your application.

You can consume the effect API in several ways.

Via effect's config.js

Add to the bottom of the Makeup/config.js file:

/* Feel free to add your custom code below */

Lips.matt("0.85 0.23 0.2 0.8")

From application

In your app code use evalJs from Banuba SDK:

// Effect mCurrentEffect = ...

// set lips matt color
mCurrentEffect.evalJs("Lips.matt('0.85 0.23 0.2 0.8')", null);

Combine features

To combine the Makeup API features, call the desired methods in your app or in config.js as shown above.

Example:

/* Feel free to add your custom code below */

Lips.matt("0.85 0.23 0.2 0.8")
Makeup.eyeshadow("0.6 0.5 1 0.6")
Makeup.contour("0.3 0.1 0.1 0.2")

Preview

Drag