CPSC415A
Web Programming

Assignment 25

TypeScript

Create a TypeScript that defines:

  1. an Interface for a object that represent a color. The Interface should have properties for the red, blue, and green channels of a color.
  2. a function that linearly interpolates between two color objects. The function should have three parameters, two color objects, the colors to interpolate, and one number, the fraction to interpolate. The function should return a new color object. The function should specify the types of the input parameters and the return type.

Submission

Submit your code on the course Inquire site.