This example is running in WebGL2 and should work in most browsers. You can check the WebGPU examples here.
scale.rs:
//! Illustrates how to scale an object in each direction.
use PI;
use *;
// Define a component to keep information for the scaled object.
// Implement a simple initialization.
// Startup system to setup the scene and spawn all relevant entities.
// This system will check if a scaled entity went above or below the entities scaling bounds
// and change the direction of the scaling vector.
// This system will scale any entity with assigned Scaling in each direction
// by cycling through the directions to scale.