Cabbage Logo
Back to Cabbage Site

XY-Pad trajectory line colour set by another identifier

I notice that the fontColour()-identifier affects both the font and the trajectory line of the ball.

ballColour() however controls the colour of both the ball and the positional lines around the ball.

Maybe it would make more sense if the ballColour() affects the trajectory line instead of fontColour()?

<Cabbage>
form caption("Untitled") size(500, 500), guiMode("queue"), pluginId("def1")

xypad bounds(102, 44, 300, 300) channel("xChan10001", "yChan10001") rangeX(0, 1, 0) rangeY(0, 1, 0), fontColour(255, 0, 0, 255), ballColour(255, 255, 255, 255)
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 --midi-key-cps=4 --midi-velocity-amp=5
</CsOptions>
<CsInstruments>
; Initialize the global variables. 
ksmps = 32
nchnls = 2
0dbfs = 1

;instrument will be triggered by keyboard widget
instr 1

endin

</CsInstruments>
<CsScore>
;causes Csound to run for about 7000 years...
f0 z
</CsScore>
</CsoundSynthesizer>

Agreed. It might change th look of one or two existing instruments, but I think it would make more sense this way. I’ll add it to the list. :+1: