Page 1 of 1
Ruby
Posted: Fri Jan 22, 2016 12:14 am
by tulamide
It seems that with Exo programming C++, Nubeat7 Juce/C++, MyCo working on Flowstone (thank whatever entity you believe in!), KG in exam-stress and TheOm (and others) only rarely on here, I am the only one left to answer Ruby questions.
Please don't hate me for not answering each question, but I just don't have the time to answer all. I will pick the ones that are (from my point of view) quick to answer. Soon, KG will be back and the situation more relaxed. Until then, don't get mad

Re: Ruby
Posted: Fri Jan 22, 2016 3:08 am
by RJHollins
I, and probably most everyone here, hope you are not getting hate directed toward you, regardless of help or not.
Re: Ruby
Posted: Fri Jan 22, 2016 7:46 am
by kortezzzz
And I hope you eventually won't hate us for molesting you with so many questions

I knew that someday the talented guru gang would leave to other platform. Wish them good luck and in addition, wish to find your glorious comments here as long as the FS format would be relevant.
Thanks

Re: Ruby
Posted: Fri Jan 22, 2016 11:33 am
by Spogg
Yesterday I had the idea of starting a Topic called Ruby and now here it is
I thought it would possibly be useful to confine Ruby issues to one huge thread rather than have them spread all over the Forum. In this way anyone wanting to learn would find a useful resource in one place, as well as get answers and help.
It will be up to everyone individually whether they want to do this or not of course.
Finally I really
really do appreciate all the help and contributions I've had on other issues tulamide. This is not Facebook so we can't click on 'Like' but I would if I could!
Cheers
Spogg
Re: Ruby
Posted: Sat Jan 23, 2016 2:23 am
by martinvicanek
Can I use this thread for a question: Is there a Ruby method to access pixel vaules of a bitmap image, something like getPixel(x,y) and setPixel(x,y,color)? I know there are prims for just that (although I never got them to work

), however it would be so much more versatile to have this ability in Ruby.
Re: Ruby
Posted: Sat Jan 23, 2016 2:53 am
by tulamide
martinvicanek wrote:Can I use this thread for a question: Is there a Ruby method to access pixel vaules of a bitmap image, something like getPixel(x,y) and setPixel(x,y,color)? I know there are prims for just that (although I never got them to work

), however it would be so much more versatile to have this ability in Ruby.
Unfortunately not. There is quite some functionality missing for graphics, especially that allowing to alter something. I can think of many more, like transfer functions for graphic paths (rotation, shifting, skewing, etc.). However, the Bitmap class only offers
:width
:height
:widthPixels
:heightPixels
Re: Ruby
Posted: Sat Jan 23, 2016 10:28 am
by tester
As far I remember, there is (or at least was) searching problem on this forum, this many ruby topics are forgotten. To find them - use google, and include: keywords (or phrases in quotation marks), forum user names (if you remember situations that involve you or someone else) and at the end - site:dsprobotics.com, like this:
ruby array transpose tester site:dsprobotics.com