[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] Changing window background color without redrawing
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] Changing window background color without redrawing
- From: Uri Sala <urisala@xxxxxxxxx>
- Date: Mon, 4 May 2009 23:19:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=1Icw6ImYVIPViNYpXAY1QQU2suwHMA6k1fVo1/D0pT8=; b=dvMPnNSABPIGuVqXqbyW1LL28qd7jlm8cbLXc67GwAILYXpH8KjDEEAabrP3PBYoaZ EQgs6oThFVU/NukTDxVgO7glXrym9K9dykf1uUm93Qc+7A2cug0XwdTmluQNbbaYxRJN 1HvpMztkVGxynjh9gbVc2Y2j3Dgk1TRnLB+F0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=tsgU8PyMbrcEJBm92U0UoUMobj1KkGXGNOlxxBsnhhziMZEbbTh/itEQqa9Fe2tv3M 5mfpeDq4lV2kld9s3a1Bw/wSawYX1kH2w6S2jE3b2ttEfzsY22ugf60hc6OGa09WnoC7 KPRTjLMnb1RKII/8OFfAzxMKzhzlt/cJbgqas=
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Hi everybody,
I have a window, whose background color I control with a midi fader. This window has a drawhook outputting random squares that is refreshed every second. If I change the background color with every fader action, the entire window gets redrawn, resulting in mayhem of squares. The other option is to have the fader action to change a variable for the color, but then the background changes to the rhythm that the drawhook refreshes the window, i.e., every second.
Is there some way I can change the background color of the window at the speed I want without the drawhook refreshing or are the two inevitable coupled?
Thanks
Uri