Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/release-content/release-notes/constructor_functions_for_val_variants.md
6592 views
---
title: "`Val` helper functions" authors: ["@Ickshonpe", "@TheBlckbird"] pull_requests: [20518, 20551]
---

To make Vals easier to construct the following helper functions have been added: px, percent, vw, vh, vmin and vmax. Each function takes any integer type and returns the value wrapped by its corresponding Val variant. There is also an auto helper function that maps to Val::Auto.