Final Projects for CPSC 337 -- Intro to Web Graphics
1.
Using JavaScipt and either canvas and/or SVG, make a graphical color
picker that allows the choice of any of the 2^24 different colors
that behaves like the HSB color picker in Adobe Photoshop. Namely, as
one adjusts a slider that controls hue, the appearance of the Brightness
by Saturation plot should continually update, allowing a mouse click at
any point in that 2D plot to change the background color of a web page.
2.
Make a "rocket launcher" that monitors the position of mousedown
(T0), and the path along which the mouse moves prior to mouseup (Tn),
and the timing of that activity. The rocket will traverse a path
dictated by the intermediate points along which the mouse moved, and
its speed , by the time it took to "draw" the trajectory. The
orientation of the rocket should be in the same direction of the
trajectory path at that point (namely its rotation should be controlled
by the slope of the path).
3. Allow the simple aiming of a series of
newly created objects that will move across the screen and bounce off
the edges. Provide for collision detection such that whenever two
objects "touch" they bounce off of each other (the laws of physics need
not apply exactly).
4. Build a simple drawing environment in which basic shapes (ellipses, rectangles and polygons) can be drawn, moved and edited.
5.
Build a CSS layout editor. Start with N=1 rectangles (the browser
window) A mousedown, mousemove, mouseup sequence over any any
rectangle (the chosen rectangle) should partition the current rectangle
into two. If the mouse has moved more vertically than horizontally,
then the partition should be along a vertical line. Otherwise the
partition will be along a horizontal line. So, with each
mouse-click-sequence, one new rectangle is added to the layout. Find a
way to generate and display the appropriate CSS code (styles phrased in
proportions of window size for each rectangle). Populate each of
the rectangles by adding either color, an <img> or a
<textarea>. (A textarea might be a good place to display the CSS
code that has been generated)..
6. Make a polygon editor. An initial
mouseclick determines the first vertex of a polygon. Every click after
that adds a new line (and vertex) to the polygon (with the
portion drawn being displayed). The polygon is finished when the
initial vertex is revisited with a click. After creation of the
polygon, any vertex should be chooseable and draggable to allow for
reshaping of the polygon.
7. Tell me about a type of project in
class (a finite amount of time will be reserved for such, the week of October 23rd).
We'll discuss it. If you can convince me, then write up a description
(before the end of the week) and e-mail it to me and I'll add it
to the list.