Question: Programming Racket; How do you overlap a background color with an image. I can get both on my frame but not overlapping. In my code
Programming Racket; How do you overlap a background color with an image. I can get both on my frame but not overlapping. In my code I have
#lang racket/gui
(require racket/draw net/url)
# I created a basic frame
(define frame (new frame% [label "yolo"]))
#Took an image from the internet by
(define image (read-bitmap (get-pure-port (string->url "some image link"))))
# i create my canvas
(define canvas (new canvas% [parent frame]
[paint-callback
(lambda (canvas yo)
(send canvas set-canvas-background "red"))]))
(void (new message% [parent frame] [label image]))
(send frame show #t) Is there a way for me to overlap the two images???
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
