1. Is it possible to take that ugly border out ?

I mean: How can I clean that frame that appears around the graphics
screen (I think the color of the frame change acording to the palette) ?
        I think someone told how to do it a long time ago, but I can't find
this message anymore...

        Thanks,
---
Ricardo Niederberger Cabral
Command & Conquer World: Files, Links, Tactics, News ...
http://www.geocities.com/TimesSquare/1210

new topic     » topic index » view message » categorize

2. Re: Is it possible to take that ugly border out ?

>         I mean: How can I clean that frame that appears around the graphics
> screen (I think the color of the frame change acording to the palette) ?
>         I think someone told how to do it a long time ago, but I can't find
> this message anymore...
>
>         Thanks,
> ---
> Ricardo Niederberger Cabral
> Command & Conquer World: Files, Links, Tactics, News ...
> http://www.geocities.com/TimesSquare/1210

The border around the screen is simply color 16. Just change it to
black (or whatever) with the palette() command.

Hope this helps.

Michael Bolin

new topic     » goto parent     » topic index » view message » categorize

3. Re: Is it possible to take that ugly border out ?

>         I mean: How can I clean that frame that appears around the graphics
> screen (I think the color of the frame change acording to the palette) ?
>         I think someone told how to do it a long time ago, but I can't find
> this message anymore...

i don't have a very good answer but at least i have one...  the only
i've found to avoid that is to set palette 16 to 0 because the border
is colour 16...  sorry if that's not good enough :>




    .   o   O   Mike Burrell   O   o   .
. o O http://www.geocities.com/SoHo/9036 O o .
   .  o  O burrellm at geocities.com O  o  .

new topic     » goto parent     » topic index » view message » categorize

4. Re: Is it possible to take that ugly border out ?

On Wed, 18 Sep 1996 21:01:12 -0300 Ricardo Niederberger Cabral
<rnc at INFOLINK.COM.BR> writes:

>        I mean: How can I clean that frame that appears around the
>graphics
>screen (I think the color of the frame change acording to the palette)
>?
>        I think someone told how to do it a long time ago, but I can't
>find
>this message anymore...
>
>        Thanks,
>---
>Ricardo Niederberger Cabral
>http://www.geocities.com/TimesSquare/1210
>
palette index 17 which is palette color 16 is the border culprit.

Quick fix is
--------------------------
--color = 16
--palette[color + 1] = {0, 0, 0}
palette[17] = {0, 0, 0}
all_palette(palette / 4)
--------------------------

What should be done is.
---------------------------
Remap all references to 16 in the image to an unused palette color
then copy palette[16+1] to palette[unused_color + 1].

palette[unused+1] = palette[17]

After that, set palette[16+1] to black {0, 0, 0}

palette[17] = {0, 0, 0}
---------------------------

--Lucius Lamar Hilley III
--  E-mail at luciuslhilleyiii at juno.com
--  I support transferring of files less than 60K.
--  I can Decode both UU and Base64 format.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Is it possible to take that ugly border out ?

>palette index 17 which is palette color 16 is the border culprit.
>Quick fix is
>--------------------------
>--color = 16
>--palette[color + 1] = {0, 0, 0}
>palette[17] = {0, 0, 0}
>all_palette(palette / 4)
>--------------------------
>What should be done is.
>---------------------------
>Remap all references to 16 in the image to an unused palette color
>then copy palette[16+1] to palette[unused_color + 1].
>palette[unused+1] = palette[17]
>After that, set palette[16+1] to black {0, 0, 0}
>palette[17] = {0, 0, 0}
>---------------------------

        The problem is that almost all the images in my program use the
palette entry 16 (17 in an Euphoria sequence) so when I set palette[17] to
{0,0,0}, these images are displayed incorrectly.
        (All the images in my program have the same palette, where index 16
is red).
        How can I fix this problem without having to change the index 16 to
black and reassigning this global palette to all the images ?
        More exactly: Is there a fast way to change all references to color
17 to an unused color ?

---
Ricardo Niederberger Cabral
Command & Conquer World: Files, Links, Tactics, News ...
http://www.geocities.com/TimesSquare/1210

new topic     » goto parent     » topic index » view message » categorize

6. Re: Is it possible to take that ugly border out ?

On Mon, 23 Sep 1996 11:51:49 -0300 Ricardo Niederberger Cabral
<rnc at INFOLINK.COM.BR> writes:
>
>       The problem is that almost all the images in my program use
>the palette entry 16 (17 in an Euphoria sequence) so when I set
>palette[17] to {0,0,0}, these images are displayed incorrectly.
>        (All the images in my program have the same palette, where
>index 16 is red).
>        How can I fix this problem without having to change the index
>16 to black and reassigning this global palette to all the images ?
>        More exactly: Is there a fast way to change all references to
>color 17 to an unused color ?
>
>Ricardo Niederberger Cabral

Fast way !  Matter of opinion.
Easy way.  YES

Read and make use of attached UUE file following sig.
I put this together a month or two ago.  Do not remove the
part that says Release 1.  This product is not yet complete.
When it is complete I will release it again with another release #.
This will allow you to know if you have the latest release or not.

--Lucius Lamar Hilley III
--  E-mail at luciuslhilleyiii at juno.com
--  I support transferring of files less than 60K.
--  I can Decode both UU and Base64 format.

section 1 of uuencode 5.21 of file imgutils.zip    by R.E.M.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Is it possible to take that ugly border out ?

>         The problem is that almost all the images in my program use the
> palette entry 16 (17 in an Euphoria sequence) so when I set palette[17] to
> {0,0,0}, these images are displayed incorrectly.
>         (All the images in my program have the same palette, where index 16
> is red).
>         How can I fix this problem without having to change the index 16 to
> black and reassigning this global palette to all the images ?
>         More exactly: Is there a fast way to change all references to color
> 17 to an unused color ?

If you have a sequence S, and you want to change value X to value Y:

S = S + (Y - X) * (S = X)

This will work for sequences of any size or depth, so you could
change an entire sequence of images at once like this.

A faster way that only works on a single image (a sequence of
sequences) is this:

function change(sequence s, atom x, atom y)
    sequence one_row

    for i = 1 to length(s) do
        one_row = s[i]
        for j = 1 to length(one_row) do
            if one_row[j] = x then
                one_row[j] = y
            end if
        end for
        s[i] = one_row
    end for
    return s
end function

Regards,
              Michael Bolin

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu