ContentsFoundations to FrontierBezhig

integration_code/starters/graphics.py

All lab code. Download this file.

# Exercise scaffold. Reference implementation is in a separate directory.
"""W06: triangle coordinates and perspective interpolation, CPU-only."""
import math

def barycentric(point, a, b, c):
    raise NotImplementedError('Implement this contract from the book.')

def perspective(weights, w, attributes):
    raise NotImplementedError('Implement this contract from the book.')