Is there a way to change material colors using Javascript?

Hey guys! I’m currently trying to manipulate materials and the viewer to a project that i’m creating, but i didn’t figure out a way to manipulate materials via script.

Is there a way to do it?

Please take a look at the official javascrip api documentation:

In there you will find the following example texture manipulation via js scene: