This JavaScript library allows to build a scalar field with simple drawing operations and render it thanks to a marching squares implementation.
Originally, it was an extension for GDevelop but it doesn't have any dependency to it.
Some examples from the GDevelop extension documentation illustrate how this can be used in games.