Search found 523 matches

by pjw
Wed Jul 10, 2019 11:21 am
Forum: Software & Programming
Topic: Need help to understand some code, random number within a range of.
Replies: 9
Views: 535

Re: Need help to understand some code, random number within a range of.

tofro wrote:<>
Let's say you want a number between 50 and 100:

RANDOM gives you a number -32768-32767
Am I missing something here? What about RND(50 TO 100)? or RND(-50 TO 50)? RND already does all the hard work for you..
by pjw
Tue Jul 02, 2019 10:40 pm
Forum: Software & Programming
Topic: Announcing: The way, QLiberator use the PE
Replies: 8
Views: 512

Re: Announcing: The way, QLiberator use the PE

Hi Ralf, Quite enlightening with regards to the Pointer Environment integration into Qliberator. Yes, indeed. All the indications are that there was a close working relationship between Liberation Software and QJump. @ Ralf, Good idea about your enlightenment project. I hope it is a success! BTW, d...
by pjw
Tue Jul 02, 2019 10:28 pm
Forum: Hardware
Topic: Microdrives- has anyone managed to replace the tape ?
Replies: 15
Views: 4417

Re: Microdrives- has anyone managed to replace the tape ?

tcat wrote:Good idea. I was also thinking to put as many razors 1,9mm appart, as fit across VHS tape width, but then it would reuquire a lot more force to pull tape through the blades.
Just remember to change the blades every few thousand feet ;)
by pjw
Tue Jul 02, 2019 2:41 pm
Forum: Hardware
Topic: Microdrives- has anyone managed to replace the tape ?
Replies: 15
Views: 4417

Re: Microdrives- has anyone managed to replace the tape ?

S-O-S, any luck, ideas out there? A vice, a rubber eraser, a razor blade or surgical knife. Cut the eraser into two pieces of the required thickness, jam the razor blade between the two pieces of rubber in the vice. The gap between the vice jaws must be the width of the tape to be cut. Gently draw ...
by pjw
Sun Jun 30, 2019 5:57 pm
Forum: Software & Programming
Topic: SCREEN1 = SYSVAR @ JSROM
Replies: 83
Views: 5540

Re: SCREEN1 = SYSVAR @ JSROM

.. May be of interest - Silvester on here wrote a piece of code for SMSQ/E so that the pixel colour read should work in modes beyond 4 and 8, this should allow the equivalent basic functions in other toolkits such as RPXL% of Easyptr 4 to work now too. (not tried it myself, and can't remember if it...
by pjw
Sun Jun 30, 2019 5:49 pm
Forum: Software & Programming
Topic: SCREEN1 = SYSVAR @ JSROM
Replies: 83
Views: 5540

Re: SCREEN1 = SYSVAR @ JSROM

the above algorithm is (from a pure FILL perspective) actually one of the most efficient ones - It guarantees that every pixel to be filled is only visited exactly once. Youre right: Its fantastic! No need to look further ;) To check out your claim that it visits each pixel only once, I did some (n...
by pjw
Sun Jun 30, 2019 12:44 pm
Forum: Software & Programming
Topic: SCREEN1 = SYSVAR @ JSROM
Replies: 83
Views: 5540

Re: SCREEN1 = SYSVAR @ JSROM

Fiddled a bit just for the fun of it.... Very nice! :) Something to work with. Theres also something called QuickFill which by all accounts seems to be one of the more efficient and versatile algorithms around. Unfortunately, I dont know enough C++ to understand in detail how it works or to transla...
by pjw
Sun Jun 30, 2019 11:10 am
Forum: Software & Programming
Topic: SCREEN1 = SYSVAR @ JSROM
Replies: 83
Views: 5540

Re: SCREEN1 = SYSVAR @ JSROM

If you can define a shape as a blob, theres an inbuilt routine to fill it with any colour or texture, in any mode. I dont know what limitations the routine has re size, memory or efficiency, but it might be worth investigating.
by pjw
Sun Jun 30, 2019 11:04 am
Forum: Software & Programming
Topic: Hardware pointers and cursors.
Replies: 30
Views: 1578

Re: Hardware pointers and cursors.

Dave, I didnt mean to sound as harsh as it came across; I just wanted to try to save you from another distraction ;) Being a sufferer myself, Im familiar with how the imagination races ahead, generating ideas at thousands of times the speed of any chance of implementing them! Im sure many people her...
by pjw
Sat Jun 29, 2019 11:12 pm
Forum: Software & Programming
Topic: SCREEN1 = SYSVAR @ JSROM
Replies: 83
Views: 5540

Re: SCREEN1 = SYSVAR @ JSROM

tcat wrote:.. EDIT, Hi Per,
Knoware/toolkits/RPIX% does colour picking?
Very useful!
Tom
Yes. Its not as clever as the original RPIXL from Qptr, but it will read a pixel relative to a given window, or relative to the screen, and return the colour in native or RGB mode.