from

Convenience function for Compose contexts to create a RawRes instance.

Uses the current Compose LocalContext to obtain Resources, avoiding the need to pass it manually.

Return

A RawRes instance with the given resource ID and the current Resources.

Parameters

resId

The resource ID of the raw Rive file.