Shop OBEX P1 Docs P2 Docs Learn Events
Large Charaters but only for some parts of the screen? — Parallax Forums

Large Charaters but only for some parts of the screen?

lmclarenlmclaren Posts: 104
edited 2011-06-21 17:03 in Propeller 1
Hi,

I am using "vga_1280x1024_tile_driver_with_cursor" to display text for my coffee roaster. I would like to have some larger characters to show the important variables.

I have played around drawing numbers using coloured spaces but it does not look too flash. Is there a way to reuse the internal font or even another font and draw larger characters?

I dont want to change the whole screen, only some parts.

many thanks

Lee

Comments

  • RaymanRayman Posts: 14,876
    edited 2011-06-20 04:33
    You could use Graphics.spin and convert a portion of the screen into a graphics area and then use the included vector font to draw large characters.
  • nestor73nestor73 Posts: 33
    edited 2011-06-20 05:37
    i'd love to learn what comes out of this discussion, i'm dealing with the same problem :-)
  • Don MDon M Posts: 1,653
    edited 2011-06-20 05:52
    It would be even better if there were some code examples and / or a video of it... :)
  • RaymanRayman Posts: 14,876
    edited 2011-06-20 07:06
    There is an example for XGA (1024x768) in OBEX.
    It has a small graphics area.

    Also, at the bottom of this page:
    http://www.rayslogic.com/propeller/Programming/Programming.htm

    I've made some notes on how to move and resize that graphics area...

    Going from XGA to SXGA is fairly straightforward although there is a diffence (as I recall) on how the tile area is encoded.
    In one case the color bits are on the right side and in the other case the color bits are on the left side...
  • lmclarenlmclaren Posts: 104
    edited 2011-06-21 02:06
    I am all out of cogs so I suspect that the graphics.spin is not an option for me. Would it be possible to remap one of the existing characters into a 2x2 tile and then print the 4 characters using the standard method? I mainly need this for numbers.

    I also want to do a bar graph, I was going to make some custom characters that are say 1/4 1/2 /3/4 full block that I print to make a line that increases in 1/4 character steps.

    Am I using the best video object for what I am trying to accomplish? eg, 80 char minimum wide, individual colour per character, max 3 cogs (gee, 2 would be nice!)?
  • lmclarenlmclaren Posts: 104
    edited 2011-06-21 04:12
    BTW, Thanks Ray for the color applet on your web site, made it a lot easier to fix the box colour problems I was having.
  • RaymanRayman Posts: 14,876
    edited 2011-06-21 04:38
    If you only need to show a few things big, look at my "1-bit graphics" tool and example on my website.
    With that, you can great and show large graphics without using graphics.spin...
  • lmclarenlmclaren Posts: 104
    edited 2011-06-21 17:03
    Ahh, that looks very promising, thanks again Ray.
Sign In or Register to comment.