I want to know how to put a background image in a viewport
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more
;How can I put this code:
#lang racket
(require 2htdp/universe)
(require 2htdp/image)
;; The onMouse function takes a world and mouse event parameters, and returns a
new world if a click
;; happened, or the same world if some other event happened (e.g. mouse move)
(define (onMouse world x
#lang racket
(require 2htdp/universe)
(require 2htdp/image)
;; The onMouse function takes a world and mouse event parameters, and returns a
new world if a click
;; happened, or the same world if some other event happened (e.g. mouse move)
(define (onMouse world x y ev)
(if (equal? ev
El lunes, 30 de noviembre de 2015, 19:02:35 (UTC-5), Matthias Felleisen
escribió:
> Don't use the old X graphics library. Use
>
> #lang racket/gui
>
> instead. -- Matthias
>
>
>
> On Nov 30, 2015, at 3:51 PM, Alejandro López <alejitoflo...@gmail.com&g
But i need this in the old library :(
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit
I have this code:
;purpose
;Creating play noughts and crosses
;Include graphics library
(Require (lib "Graphics.ss" "graphics"))
;Open graphics library
(Open-graphics)
;Create window
(Define window (open-viewport "three in one" 500 500))
;background color
((Draw-viewport window) "black")
I have this code:
#lang racket
;purpose
;Creating play noughts and crosses
;Include graphics library
(require (lib "Graphics.ss" "graphics"))
;Open graphics library
(open-graphics)
;Create window
(define window (open-viewport "three in one" 500 500))
;background color
((draw-viewport window)
I would like to clicking on a window, then appears an image and go counting
each pair is a picture and impar is other image.
for example first click=image1 second click =image2 third click=image1 fourth
click= image2 5 = image1 etc ...
--
You received this message because you are subscribed
8 matches
Mail list logo