Author Topic: new defined planet in horoscope  (Read 3555 times)

0 Members and 1 Guest are viewing this topic.

Les

  • Newbie
  • *
  • Posts: 17
    • View Profile
new defined planet in horoscope
« on: February 12, 2021, 07:21:27 PM »
Hi,
I would like to put a new 'planet' into horoscope.
Just wondering if there is a chance to put bmp file instead of using setbitmap(&BitmapInfo, int color); and then putbitmap?

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1291
    • View Profile
Re: new defined planet in horoscope
« Reply #1 on: February 13, 2021, 08:41:45 AM »
There is picture(), used in Cartography. But you'd have to distribute that jpg along with the script.
Greetings from Groningen Netherlands.

Les

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: new defined planet in horoscope
« Reply #2 on: February 13, 2021, 06:46:04 PM »
Thank you Jean.
I used first setbitmap as per example in help:

char MyBitmap[16][17] =
"x xxxxxxxxxxxxxx",
"x xxxxxxxxxxxxxx",
"xx xxxxxxxxxxxxx",
"xxx xxxxxxxxxxxx",
"xxxx xxxxxxxxxxx",
"xxxxx xxxxxxxxxx",
"xxxxxx xxxxxxxxx",
"xxxxxxx xxxxxxxx",
"xxxxxxxx xxxxxxx",
"xxxxxxxx xxxxxxx",
"xxxxxxxxx xxxxxx",
"xxxxxxxxxx xxxxx",
"xxxxxxxxxxx xxxx",
"xxxxxxxxxxxx xxx",
"xxxxxxxxxxxxxx x",
"xxxxxxxxxxxxxxx ";

setbitmap(&MyBitmap, BLACK);
putbitmap(10, 10, 0);

but PD tells me that: "Variable not found: Parameter no: 1. Line 221"
Line 221 is: setbitmap(&MyBitmap, BLACK);
therefore I was looking for other way as that one does not work for me and don't know how to get it right.
char MyBitmap is in the section where all variables are being declared of course.
What do I wrong with this one?

Les

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: new defined planet in horoscope
« Reply #3 on: February 13, 2021, 07:25:04 PM »
... alright, solved.
&MyBitmap must be without "&". :)

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1291
    • View Profile
Re: new defined planet in horoscope
« Reply #4 on: February 13, 2021, 08:49:57 PM »
Are you getting along?

I am thinking about a way to convert a jpg to asci text, so you could just distribute it in ab code, could be done i think.
Greetings from Groningen Netherlands.

Les

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: new defined planet in horoscope
« Reply #5 on: February 14, 2021, 08:42:52 AM »
Hi Jean,
this is very good idea, perhaps bmp would be even easier, as jpg is compressed.

Les

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: new defined planet in horoscope
« Reply #6 on: February 14, 2021, 08:49:35 AM »
I have also been analyzing default.sym where bitmaps are kept, perhaps here would be easy to add bitmaps of new planets, but the length of that file seems to be fixed... or some additional file. I am just sharing my thoughts.

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1291
    • View Profile
Re: new defined planet in horoscope
« Reply #7 on: February 14, 2021, 08:56:36 AM »
the sym* files are the same principle as setbitmap. I will look into that jpg to text later today.
Greetings from Groningen Netherlands.

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1291
    • View Profile
Re: new defined planet in horoscope
« Reply #8 on: February 14, 2021, 12:46:17 PM »
On second thought i'm not gonna do that text to jpg convert, it would require quite some effort and the setbitmap feature is mostly sufficient.
Greetings from Groningen Netherlands.