Re: [julia-users] Re: wrapping a julia package

2016-09-16 Thread Tim Holy
Yes, the idea of wrappers that reinterpret or convert makes sense. On Friday, September 16, 2016 9:29:33 AM CDT Páll Haraldsson wrote: > type Color > r::Uint8 > g::Uint8 > b::Uint8 > a::Uint8 RGBA{U8} is bitwise identical to this, so you can use reinterpret as needed. --Tim

[julia-users] Re: wrapping a julia package

2016-09-16 Thread Páll Haraldsson
On Friday, September 16, 2016 at 4:29:33 PM UTC, Páll Haraldsson wrote: > `ARGB32` uses a `UInt32` representation of color, > > [I didn't see RGBA, only alpha in upper bits.. so unless I overlooked, may > not work, since bits not in the same order:] > > > " reinterpret(type, A) > >

[julia-users] Re: wrapping a julia package

2016-09-16 Thread Páll Haraldsson
On Friday, September 16, 2016 at 4:29:33 PM UTC, Páll Haraldsson wrote: > > This is an inserting question in general, first for the specific: > Obviously "interesting" question.. Didn't mean to rely on spell check..

[julia-users] Re: wrapping a julia package

2016-09-16 Thread Páll Haraldsson
This is an inserting question in general, first for the specific: A. I took a quick look at the code: https://github.com/zyedidia/SFML.jl/commit/2e6ebee0a6dca85486563ea6f99decc595e831fa type Color r::Uint8 g::Uint8 b::Uint8 a::Uint8 Then Colors.jl seemed overkill and maybe not