here is a program that unexpectedly produces a blank image:
#lang racket/base
(require pict)
(require racket/math)
(define original-shape (rotate (filled-rectangle 10 100) (/ pi 3)))
(ht-append original-shape (scale original-shape -1 1))
here are two programs, very similar to that one, that have no unexpected behavior:
#lang racket/base
(require pict)
(require racket/math)
(define original-shape (rotate (filled-rectangle 10 100) (/ pi 3)))
(ht-append original-shape original-shape)
#lang racket/base
(require pict)
(require racket/math)
(define original-shape (rotate (filled-rectangle 10 100) (/ pi 3)))
(ht-append (scale original-shape -1 1) (scale original-shape -1 1))
here is a program that unexpectedly produces a blank image:
here are two programs, very similar to that one, that have no unexpected behavior: