# CS 476: Computer Graphics - Module 15 Exercise 2 (1.5 Points)

Graphics content developed by Chris Tralie. Module autograding ecosystem designed by Chris Tralie and Bill Mongan.

# Exercise Goals

The goals of this exercise are:- Manipulate heightmaps for levelset curve editing
- Work with implicit representations of curves

# Heightmap Editor

function fn(x, y) {
function gauss(x, y, cx, cy, sigma) {
const dx = x - cx;
const dy = y - cy;
return Math.exp(-(dx*dx+dy*dy)/(sigma*sigma));
}
return gauss(x, y, 0, 0, 0.2);
}

**Enter your Ursinus netid before clicking Check/Submit. This is not your ID number or your email. For example, my netid is ctralie (non Ursinus students can simply enter their name to perform the correctness check, but they won't get an e-mail record or any form of credit)**

Netid |

**You must be connected to the VPN for submission to be successful! You will receive a copy of your code via e-mail, so you'll know that it was submitted if you receive that e-mail!**