Re: colour lib needs reviewers

2016-09-12 Thread Manu via Digitalmars-d
wrote: >> >> I think I'm about as happy with my colour lib as I'm going to be. It >> really needs reviews. >> >> I added packed-RGB support, including weird micro-float and >> shared-exponent formats. >> They're important for interacting with

Re: colour lib needs reviewers

2016-09-12 Thread Guillaume Chatelet via Digitalmars-d
On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: I think I'm about as happy with my colour lib as I'm going to be. It really needs reviews. I added packed-RGB support, including weird micro-float and shared-exponent formats. They're important for interacting wit

colour lib needs reviewers

2016-09-11 Thread Manu via Digitalmars-d
I think I'm about as happy with my colour lib as I'm going to be. It really needs reviews. I added packed-RGB support, including weird micro-float and shared-exponent formats. They're important for interacting with any real-time rendering libraries. There is only one texture form

Re: colour lib

2016-09-04 Thread Manu via Digitalmars-d
On 4 September 2016 at 03:44, Marco Leise via Digitalmars-d wrote: > Am Sat, 3 Sep 2016 16:01:26 +1200 > schrieb rikki cattermole : > >> On 03/09/2016 12:17 PM, Manu via Digitalmars-d wrote: >> ...snip... >> >> > I think the presence of all this colour space information as type >> > arguments shou

Re: colour lib

2016-09-03 Thread rikki cattermole via Digitalmars-d
On 04/09/2016 5:44 AM, Marco Leise wrote: Am Sat, 3 Sep 2016 16:01:26 +1200 schrieb rikki cattermole : Something[0] along this line perhaps? Overview of the choices and scope along with reasoning. [0] https://github.com/rikkimax/alphaPhobos/blob/master/source/std/experimental/graphic/image/spe

Re: colour lib

2016-09-03 Thread Marco Leise via Digitalmars-d
Am Sat, 3 Sep 2016 16:01:26 +1200 schrieb rikki cattermole : > On 03/09/2016 12:17 PM, Manu via Digitalmars-d wrote: > ...snip... > > > I think the presence of all this colour space information as type > > arguments should nudge users in the right direction. They'll be all > > "I've never seen th

Re: colour lib

2016-09-02 Thread rikki cattermole via Digitalmars-d
On 03/09/2016 12:17 PM, Manu via Digitalmars-d wrote: ...snip... I think the presence of all this colour space information as type arguments should nudge users in the right direction. They'll be all "I've never seen this parameter before..." and google it... maybe. I don't think it's the std lib

Re: colour lib

2016-09-02 Thread Manu via Digitalmars-d
On 3 September 2016 at 03:25, Marco Leise via Digitalmars-d wrote: > Am Fri, 2 Sep 2016 15:58:05 +1000 > schrieb Manu via Digitalmars-d : > >> I wonder, should NormalizedInt be a module beneath the color package, >> or should it be a separate module in its own right? >> I don't know of uses for th

Re: colour lib

2016-09-02 Thread Manu via Digitalmars-d
On 2 September 2016 at 22:36, Steven Schveighoffer via Digitalmars-d wrote: > On 8/31/16 1:58 AM, Manu via Digitalmars-d wrote: >> >> I have this implementation issue, which I'm having trouble applying >> good judgement, I'd like to survey opinions... >> >> So, RGB colours depend on this 'normalis

Re: colour lib

2016-09-02 Thread Marco Leise via Digitalmars-d
Am Fri, 2 Sep 2016 15:58:05 +1000 schrieb Manu via Digitalmars-d : > On 2 September 2016 at 06:09, Marco Leise via Digitalmars-d > wrote: > > I'd suspect #1 to be the best option, too. However, I don't > > know when users will deal with these calculations. > > Neither do I, it's just that Norm

Re: colour lib

2016-09-02 Thread Marco Leise via Digitalmars-d
> Is it s or z ? :) It's an alias to forego any language bike shedding.

Re: colour lib

2016-09-02 Thread Steven Schveighoffer via Digitalmars-d
On 8/31/16 1:58 AM, Manu via Digitalmars-d wrote: I have this implementation issue, which I'm having trouble applying good judgement, I'd like to survey opinions... So, RGB colours depend on this 'normalised integer' concept, that is: unsigned: luminance = val / IntType.max signed: luminance

Re: colour lib

2016-09-01 Thread Manu via Digitalmars-d
On 2 September 2016 at 06:09, Marco Leise via Digitalmars-d wrote: > Am Wed, 31 Aug 2016 15:58:28 +1000 > schrieb Manu via Digitalmars-d : > >> I have this implementation issue, which I'm having trouble applying >> good judgement, I'd like to survey opinions... >> >> So, RGB colours depend on this

Re: colour lib

2016-09-01 Thread Marco Leise via Digitalmars-d
Am Wed, 31 Aug 2016 15:58:28 +1000 schrieb Manu via Digitalmars-d : > I have this implementation issue, which I'm having trouble applying > good judgement, I'd like to survey opinions... > > So, RGB colours depend on this 'normalised integer' concept, that is: > unsigned: luminance = val / IntT

Re: colour lib

2016-08-31 Thread Chris Wright via Digitalmars-d
On Wed, 31 Aug 2016 19:33:24 +1000, Manu via Digitalmars-d wrote: > On 31 August 2016 at 17:58, Andrea Fontana via Digitalmars-d >> I always think the perfect colour library should work using a superset >> of all colour spaces, for example cie xyz (is it a superset, isn't >> it?). isColour(T) then

Re: colour lib

2016-08-31 Thread Ethan Watson via Digitalmars-d
On Wednesday, 31 August 2016 at 09:37:41 UTC, Andrea Fontana wrote: So maybe I miss (more than) something reading source code. You should write a readme to explain how it works :) I can probably chip in and help here at some point (both with documentation and ensuring the API is intuitive).

Re: colour lib

2016-08-31 Thread Andrea Fontana via Digitalmars-d
On Wednesday, 31 August 2016 at 09:33:24 UTC, Manu wrote: On 31 August 2016 at 17:58, Andrea Fontana via Digitalmars-d wrote: On Wednesday, 31 August 2016 at 06:17:15 UTC, Manu wrote: On 31 August 2016 at 16:01, Chris Wright via Digitalmars-d wrote: The color models I'm aware of are HSV,

Re: colour lib

2016-08-31 Thread Manu via Digitalmars-d
On 31 August 2016 at 18:04, Andrea Fontana via Digitalmars-d wrote: > On Wednesday, 31 August 2016 at 07:58:36 UTC, Andrea Fontana wrote: > > I forgot that in this way it's quite easy to wrap external class/struct to > make them works with library. If we have a custom COLOR class provided by > ano

Re: colour lib

2016-08-31 Thread Manu via Digitalmars-d
On 31 August 2016 at 17:58, Andrea Fontana via Digitalmars-d wrote: > On Wednesday, 31 August 2016 at 06:17:15 UTC, Manu wrote: >> >> On 31 August 2016 at 16:01, Chris Wright via Digitalmars-d >> wrote: >>> >>> The color models I'm aware of are HSV, HSL, RGB[A], CMYK, Lab, Pantone, >>> and the Op

Re: colour lib

2016-08-31 Thread Andrea Fontana via Digitalmars-d
On Wednesday, 31 August 2016 at 07:58:36 UTC, Andrea Fontana wrote: I always think the perfect colour library should work using a superset of all colour spaces, for example cie xyz (is it a superset, isn't it?). isColour(T) then IMO should check if x,y,z properties exists (or toXYZ() method).

Re: colour lib

2016-08-31 Thread Andrea Fontana via Digitalmars-d
On Wednesday, 31 August 2016 at 06:17:15 UTC, Manu wrote: On 31 August 2016 at 16:01, Chris Wright via Digitalmars-d wrote: The color models I'm aware of are HSV, HSL, RGB[A], CMYK, Lab, Pantone, and the Open Colour Standard. I'll initially support, XYZ/xyY, RGB (which is a gigantic set), HS

Re: colour lib

2016-08-30 Thread Manu via Digitalmars-d
On 31 August 2016 at 16:01, Chris Wright via Digitalmars-d wrote: > The color models I'm aware of are HSV, HSL, RGB[A], CMYK, Lab, Pantone, > and the Open Colour Standard. I'll initially support, XYZ/xyY, RGB (which is a gigantic set), HSx, Lab, Yuv. > I'm not sure what common operations they h

Re: colour lib

2016-08-30 Thread Chris Wright via Digitalmars-d
The color models I'm aware of are HSV, HSL, RGB[A], CMYK, Lab, Pantone, and the Open Colour Standard. I'm not sure what common operations they have. Perhaps you could provide a link to your existing library?

Re: colour lib

2016-08-30 Thread Manu via Digitalmars-d
I have this implementation issue, which I'm having trouble applying good judgement, I'd like to survey opinions... So, RGB colours depend on this 'normalised integer' concept, that is: unsigned: luminance = val / IntType.max signed: luminance = max(val / IntType.max, -1.0) So I introduce Norm

Re: colour lib

2016-08-30 Thread Manu via Digitalmars-d
On 31 August 2016 at 15:01, rikki cattermole via Digitalmars-d wrote: > > 2. As part of your argument I personally would prefer that it is at least > tested in the context of an image library. We don't want any hidden problems > there even if that is not your goal to implement the best image libra

Re: colour lib

2016-08-30 Thread rikki cattermole via Digitalmars-d
So I'm replying without your post, so I will put my thoughts here: 1. Trust your gut on this one, your the expert in the problem domain, we're not. 2. As part of your argument I personally would prefer that it is at least tested in the context of an image library. We don't want any hidden prob

colour lib

2016-08-30 Thread Manu via Digitalmars-d
l/un-contentious. It can grow in the future as desired. There is a slightly blurry line separating a colour lib from an image lib, and I want to focus the boundaries. My design propositions are this: 1. Colour type definitely belongs in the std library; - Colour types and conversions are ha

<    1   2