SynthMaker

'Line' component Pen colour...

Archive · 2005 11 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

Shifrin ·

Hi,

I think I read that the Pen colour for the Line component only accepted a few colours at the moment, from a 'String' of the form :-

[colour],[width]

Where colour is something like 'White' or 'Black'. Would it be possible to have an input for each of these things, so a standard 'C' input for any colour you want, and a standard 'F' input for the line width? Or is there some special reason the 'Pen' input is prefered? I'd just like to have total control over the line colour 😉

Thanks for any help 🙂

Shif.

malc ·

Yeah this is a problem that's been needing fixed for a while. The reason there is a Pen connector is to bundle related data together to avoid loads of connectors. I think we should still keep this but make it easier to specify a Pen the way you want it.

String components are a good way to get quick results and I think it works well that you can just use a string to get a colour when you want it. But I see them more as a shortcut when you want something in a hurry.

I think the Pen could follow the way Areas work. You can use a string to quickly define an area but you also have an area component that makes an Area from four floats. We could have a Pen component that makes a Pen from a colour, thickness and (eventually) line style.

I'll try and get this sorted for the next release.

Fonts are another problem that we need to address as these can only be specified by strings at the moment. I created a module that makes specifying a font much easier. We could do the same for pens as well.

Get the schematic here

Note that this could be improved if we had a component that read system fonts to populate the typeface popup.

Tom7777 ·

Thanks malc, Examples are always a good thing in my opinion as i learn best that way. 🙂

Shifrin ·

Cheers malc, makes sense to do it the way you want and if you add a R,G,B,A,Size or whatever -> Pen component that'll work great for me 🙂

Shif.

Tom7777 ·

Was just wondering can you make dotted/gated line effects? or just solid lines?

Shifrin ·

I'm pretty sure malc said the Line component would allow you to have dotted/dashed lines - just that it's not in at the moment.

Shif.

Tom7777 ·

thanks i can't wait for that feature its always cool to experiment with stuff the more modules/features the more options 🙂

posh ·

any thoughts on making it hex (and/or rgb) defined? instead of white (e.g) you go FFFFFF? cause that would rock. this can propably be done with the color select module somehow, but i have no clue how, so imo implementing this would be a nice idea.

- posh.

malc ·

Hi posh,

This was added in one of the recent incremental releases. So you can type "(128:255:100:100)" say in a String component (without the quotes of course) and connect this to a Colour connector to get a transparent red.

The format is "(a:r:g:b)" where 'a' is the transparency. All values run from 0 to 255.

We could do Hex as well I guess if it's going to be useful.

posh ·

sweet!

as far as hex/rgb, it isnt very important, that was just posted for..umm. well, to see whether it was either one or the other, for me it doesnt matter, although im more used to hex then rgb. love the a:r:g:b format. alpha yes. thanks. - posh.

Tom7777 ·

I requested ARGB by numbers a while back, im glad the feature was added, as for hex input, maybe you could have some tool modules in SM like a calculator and Hex to ARGB converter which i think would be very cool 🙂

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.