Skip to content

combining images where one is negatively scaled creates a blank image #77

Description

@HeladoDeBrownie

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions