Post Reply 
Beginner Questions
03-30-2019, 07:48 PM
Post: #1
Beginner Questions
Hello there,

I have a few questions and hope you can help me.

1) Is ASM coming to HP-Prime any time soon?
2) ICON: Can someone explain ICON's format hexPngf?
3) Can someone please provide examples of 3D features of LINE and TRIANGLE commands on the HP-Prime?
4) Where can I find technical information for the HP-Prime beyond that which is in the 700 pages manual?

Many greetings from Germany
Carissa
Find all posts by this user
Quote this message in a reply
03-31-2019, 09:26 PM
Post: #2
RE: Beginner Questions
Hallo Carissa

Did you have a look at the excellent work Jebem did in compiling all valuable help on HP Prime?
The link is a the top of the HP Prime forum (where you posted).
I put it HERE.

MfG.

Jean-Michel
Find all posts by this user
Quote this message in a reply
04-01-2019, 03:12 AM
Post: #3
RE: Beginner Questions
(03-30-2019 07:48 PM)Carissa Wrote:  1) Is ASM coming to HP-Prime any time soon?
2) ICON: Can someone explain ICON's format hexPngf?
3) Can someone please provide examples of 3D features of LINE and TRIANGLE commands on the HP-Prime?
4) Where can I find technical information for the HP-Prime beyond that which is in the 700 pages manual?

1. No.
2. I do not recommend using it at all. You have direct support for PNG and JPG now.
3. Use the built in example programs accessed either through the built in help, or in the EXAMPLE button in the new program menu.
4. The built in HELP button is the best and most up to date resource.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
04-01-2019, 05:03 AM
Post: #4
RE: Beginner Questions
Hello,

3: Look at Han's excelent 3D grapher program, in lots of ways, the 3D features were developped to match what he needed for that program, so that program is the best, fullest example of how to use the 3D features...

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
04-01-2019, 09:35 PM
Post: #5
RE: Beginner Questions
Ok, thank you all!

I must admit I have NO idea what I was asking about and really don't understand anything about these calculators.

I'm asking for my friend in prison who has an HP-Prime and can not ask here himself. I will forward your answers to him.
He has only access to the manual and can't do further research on it so I'm trying to help here a bit.

Where do I find Han's grapher programme?

Greetinx
Carissa
Find all posts by this user
Quote this message in a reply
04-01-2019, 10:28 PM
Post: #6
RE: Beginner Questions
(04-01-2019 09:35 PM)Carissa Wrote:  Where do I find Han's grapher programme?

I think that is here: http://www.hpmuseum.org/forum/thread-95.html

Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot/C47
Casio, Rockwell 18R
Find all posts by this user
Quote this message in a reply
04-01-2019, 10:37 PM
Post: #7
RE: Beginner Questions
(04-01-2019 10:28 PM)cdmackay Wrote:  
(04-01-2019 09:35 PM)Carissa Wrote:  Where do I find Han's grapher programme?

I think that is here: http://www.hpmuseum.org/forum/thread-95.html

Super - thanks a lot!
Find all posts by this user
Quote this message in a reply
04-26-2019, 10:48 PM
Post: #8
RE: Beginner Questions
Hey people,

another question of my friend:


Does anyone know if ppl is able to handle chess algorithms?


Thanks
Carissa
Find all posts by this user
Quote this message in a reply
04-26-2019, 10:56 PM
Post: #9
RE: Beginner Questions
Hello,
I found a chess program for the Prime on Eric’s site you can find here: https://www.hpcalc.org/details/7665

I didn’t test it so I don’t know how it works. However from the description it seems it is just a board where you can move the pieces and no checkmate control.

I hope it helps,

Giancarlo
Find all posts by this user
Quote this message in a reply
04-28-2019, 12:09 AM
Post: #10
RE: Beginner Questions
Thanks a lot! Will forward it to him. But I think he only wants to know if ppl is able to do that.
Find all posts by this user
Quote this message in a reply
05-03-2019, 08:33 AM
Post: #11
RE: Beginner Questions
Hey folks,

So what Michael wanted to know specifically about ICON:
"What is the proper format for png file? How can I format it regarding ICON?"

He was just relating to this "Insert 'ICON' name hexPngFile:!"
And was asking "how do I create the ICON hexPngFile? on the HP Prime?" (He doesn't have access to a computer).

Greetings from Germany and Nevada
Michael and Sabrina
Find all posts by this user
Quote this message in a reply
05-03-2019, 02:04 PM
Post: #12
RE: Beginner Questions
Personally, I don't remember ever using ICON. Here is some information I found on it:

https://h30434.www3.hp.com/t5/Calculator...-p/6009552

https://h30434.www3.hp.com/t5/Tablets-an...-p/5059557

It involves a long HEX code that creates the icon.

Eddie
Visit this user's website Find all posts by this user
Quote this message in a reply
05-04-2019, 12:30 AM
Post: #13
RE: Beginner Questions
More information on ICON can be found here:

https://www.hpmuseum.org/forum/thread-113.html

As for creating PNG files, he can simply just "draw" on the screen (via the geometry app or by a program). and save the screenshot into a picture using the AFiles() command. You can get the syntax using the Help button (type AFiles and leave the cursor at the the end of the name, then press the Help key).

For example:

AFiles("screenshot.png"):=G0 saves the graphics buffer G0 (current screen) into a file named screenshot.png -- this is saved under the current app. There are other buffers (G1 through G9) that can be used as well. Start by declaring the buffer size with DIMGROB (or DIMGROB_P) and then "draw" onto that buffer. Save as shown above with the screenshot example.

Hope that helps.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
05-06-2019, 04:57 AM
Post: #14
RE: Beginner Questions
Hello,

ICON is an "old" keyword and although it still works, it is NOT the best solution to the problems of using graphics on Prime.

Use graphical files instead (jpg or png).
png is a looseness compression. This means that when you save an image as a png and then reload it, the reloaded image is exactly the same as when you saved it.
jpg DOES loose data upon compression. This means that if you look at a file that you saved, they are some differences with what you had originally. In theory, the differences are very small and barely detectable by human eye on "real world images" such as pictures (with shades of color and gentle gradians).
jpg files are smaller (in memory size) for a given image than png.

It is important to understand this to be choose the right storage format.
Pictures like images are best saved as jpg. pictures with sharp edges or small features (like sprites, which are small drawing used for animation in games and the like) are better saved as png.


Now, if you are ON the calculator and do NOT have a computer, you can, as Han pointed out, create and use such files.
G1 to G9 are "graphical" buffers that are in the calculator and that you can use for this purpose.
You can dimention them (DIMGROB_P) draw on them with all the drawing functions and SAVE Them to file (AFiles("screenshot.png"):=G1 to save G1 into screenshot.png). the file extention here indicate the file type; png or jpg.
you can reload them the other way around doing G1:=AFiles("screenshot.png")

Unfortunately, graphical buffers are LIMITED to 9 (G1 to G9), so if you create something like a game, you usually need MORE than 9 images. for example, you have a number of sprites for all the graphical elements of you game.
In this case, the "standard" sollution is to save ALL these elements in a single image and then use the BLIT_P function to draw selected parts of the source graphic corresponding to various images.

Hope that this helps your friend.

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
05-06-2019, 10:02 AM
Post: #15
RE: Beginner Questions
Thanks everyone!
That really seems helpful - will print it out and send it to him tomorrow.

Greets
Michael and Sabrina
Find all posts by this user
Quote this message in a reply
05-07-2019, 05:13 AM
Post: #16
RE: Beginner Questions
Hello,

Stupid question (with no obligation to answer of course), why is your signature "Michael and Sabrina", but your profile is "Carissa"?

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
05-07-2019, 10:24 AM
Post: #17
RE: Beginner Questions
Well Carissa is my user name, but I usually forget that when I type in my signature. So my real name is Sabrina and Michael ist my boyfriend who I'm asking all these questions for.
Find all posts by this user
Quote this message in a reply
05-08-2019, 02:15 PM
Post: #18
RE: Beginner Questions
One other thing that might be helpful to someone who does not have internet access is to provide a printout of source code so that said person might have an idea of how programs / commands / routines are implemented. The calculator screen is too small to really get much from reading source code whereas a hard copy could act as a reference.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
05-09-2019, 05:45 AM
Post: #19
RE: Beginner Questions
Hello,

In the old times (HP48 days), you had to enter your programs with only 4 lines visible at a time!!!

Prime, especially in small font is SO much better :-)

But printouts are still better of course...


Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
05-09-2019, 07:02 PM
Post: #20
RE: Beginner Questions
Thanks for that suggestion - but he also doesn't have access to a printer and I don't have access to his HP so I can't do it for him, maybe his lawyers can send me a screenshot?

Anyways:
Michael wanted me to say a very big 'thank you' to everyone. He said these last infos, especially on ICON were really very helpful. And he's always happy when Cyrille and Eddie answer ad he thinks you both are THE men for HP prime stuff Smile I always send him all answers printed out so he's familiar with the names.

Best wishes
Mike and Sabi
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 3 Guest(s)