Skip to the content ForoHackers
Log inJoin

play the damn palette backwards

CComputer graphicsDemosceneRetrocomputing
#7004 · · Quote · Report

Okay I owe somebody a drink if these are different. My intro has a tin eel swimming under the scroller. All its scales point to one palette entry. Background stays put. It's a pretend 8-bit indexed screen, the palette itself takes 0..63 for each gun. Green stays off. Red and blue trade places, (3,8) to (8,3), over eight ticks. One tick per vertical blank.

Somebody in our crew wants nine pairs in a table then play them backwards. My little C build tool just swaps the ends and makes a fresh return trip. Same eel, yes? I would like those bytes for a second nostril.

#7109 · · Quote · Report

@om_vintern Depends where you put the division. Put the actual bastard line on the table.

#7111 · · Quote · Report
int level(int a, int b, int tick) {
    return a + (b - a) * tick / 8;
}

All ints. I call it for each gun at tick 0 through 8. The endpoints come out fine, which is the extent of my expensive eel testing programme.

#7112 · · Quote · Report

turn the strip over. at four ticks I get red 5 and blue 6. going back I get red 6 and blue 5. is there a front and a back to this fish?

#7115 · · Quote · Report

@sprottula I get 5,5 in both directions. At 4 the exact number is 5.5 on both and it rounds down. Two places reporting the same thing seems a bit rough on the person buying the drink.

#7116 · · Quote · Report

@clavo_tibio which two places? on the way down it's 8 plus a negative number. the bit you lose is still inside the parens on my bit of paper. edit: there aren't any parens round that part in the post. I mean the division.

#7118 · · Quote · Report

you can have the spare half a pixel from under my desk. it was red when I found it so the blue one is still your problem

#7120 · · Quote · Report

Bugger. I checked it in a Python prompt using //. Ran the posted C now. -20 / 8 gives -2 in C; Python gave me -3 for -20 // 8. I owe the embroiderer the drink. C committee draft, 6.5.5 paragraph 6, if you also like to lose arguments in two languages.

#7127 · · Quote · Report

hang on can somebody print the steps pls. right in the middle, sure, i get that one. what's the eel doing on the way there

#7131 · · Quote · Report

@loose-apron Dumped the red gun at the point where the build tool writes the bytes. Blue is eleven minus whatever you see here for this pair.

out     3 3 4 4 5 6 6 7 8
back    8 8 7 7 6 5 5 4 3

I put my finger on both middle sixes before I noticed one was a five. My eyeball has been relieved of QA duties.

#7132 · · Quote · Report

@om_vintern si le das la vuelta al segundo renglón te queda 3 4 5 5 6 7 7 8 8. coinciden la cabeza y la cola. ¡en las siete escamas del medio no pegaste ni una!

#7145 · · Quote · Report

che y si sacrificás la anguila te ahorrás las dieciocho posiciones. sólo estoy acá para ayudar

#7146 · · Quote · Report

@tr4smo I have lovingly drawn no fewer than four teeth on this animal and it goes nowhere till it has frightened somebody

#7147 · · Quote · Report

me asustó que fueran a dividir dieciocho veces para mover un bicho dibujado. veo ahora que es en la herramienta y no en el reproductor. retiro ocho décimos del susto

#7148 · · Quote · Report

Excuse me, generating both trips on the build machine SAVES space where? If you put both runs in the intro you've paid twice for that nostril. I had assumed you were calculating on the player.

#7149 · · Quote · Report

@rebabaq yeah. bollocks. player just gulps the next two bytes. I was boasting about how short the generator was lmao. you are getting neither its filename nor my government name

#7155 · · Quote · Report

Here's the dull reversible one. Don't divide until both ends are in the pot. For red: (3*(8-t) + 8*t)/8. For blue, swap 3 and 8. Tick 4 is 5,5 both ways. Entry chosen by the pixel hasn't changed, only what's in the entry. Nobody owes me a pixel for this.

#7158 · · Quote · Report

@3baani Put that on the eel. looks like it goes through a dirty sock. I LIKE a dirty sock (see my grey window) but all the other bars use eleven between the red and blue codes, and now I'm getting ten. Is that just the middle?

#7159 · · Quote · Report

nah, 3.625 and 7.375 become 3 and 7. you've found an impressively long way of writing "give one of my eleven away". print all the totals before the sock gets a contributor credit

#7163 · · Quote · Report

The seven interior sums are ten. Five eighths per step, so before the eighth one neither channel has made a whole number of steps in code units. The two pieces you discard add up to one whole unit every time. I'd write "sum of codes" on the plot; there's no light meter in this experiment.

#7167 · · Quote · Report

@blue-ishly fair. then round both to nearest. add four to each numerator before dividing. keeps the sums at eleven, anybody can read the arithmetic, and we can all go home looking mysterious.

#7168 · · Quote · Report

I just drew eleven little marks on a napkin and folded it in two. Where does the mark on the crease go? You rounded both halves UP in the middle. Now you got twelve. You can still have your mysterious coat, it's warm out.

#7169 · · Quote · Report

oh for fuck's sake i was on tick THREE. napkin pls

#7173 · · Quote · Report

@loose-apron once es impar aunque dibujes los palitos más bonitos. ¿les exigieron que en el centro los dos fueran iguales, o que al volver pasaran por el mismo color? son dos pedidos bien distintos.

#7175 · · Quote · Report

@NoCabenDos Second one. The eel disappears behind a letter for four ticks. When the letter lifts I want exactly the colour it went under if we're at the matching point coming back. Eleven total because the other stripes in the drawing live on that same line in my palette chart. Nobody specified perfectly balanced purple.

#7186 · · Quote · Report

Then give red what the table says and let blue have the rest! Same pile of eleven going home. Make the choice ONCE when you fill the table. I don't care which side gets the wonky mark but don't move it at the turn.

#7188 · · Quote · Report

@loose-apron This is the bit worth stealing. Red can have your original nine numbers. Blue gets 11 - red. Walk the actual list backwards. Nine bytes if the player does the subtraction and you store a byte per red value. I would have done twenty minutes of unreasonably good swearing about the name of that array and contributed less.

#7191 · · Quote · Report

wait. the original first two reds are both three. turn the same strip over and slide both ends together. don't you sit at the blue end much longer than at the red now? the two halves match but the pulse has a limp.

#7193 · · Quote · Report

@sprottula My trace says four blue-end frames and two red-end frames in a loop. Counting frames in the player this time. I am trying really hard to qualify for a second drink.

#7196 · · Quote · Report

@clavo_tibio Did the starter fire twice? If you read nine entries out and nine entries back you've played the turnaround twice. If you loop that, the other end gets played twice too. Is it eight ticks between ends or nine?

#7197 · · Quote · Report

God I hate that you could tell this from the splits. yes I had eighteen frames. Doing 0..8, 7..1 and looping gives sixteen. Low red occupies the last frame of the loop and the first TWO of the next. High red gets one. Three versus one, not four versus two. Keep your own drinks, I'm going to bed.

#7214 · · Quote · Report

Three and one is real. With the scroller turned off I can call the long end every time by counting the bass. With the scroller ON I still call that same end even if I cover the palette chart. I take back "same eel". I like the original directional version for a pulse: it hangs for two at each end. I hate it for something meant to retrace its steps behind the lettering.

#7217 · · Quote · Report

@om_vintern try giving just RED the half-up rule from my glorious failed amendment. get blue by subtraction like the napkin says. my red strip is 3 4 4 5 6 6 7 7 8. now if you play the strip both ways you get only one frame at either extreme. which gun gets 6 at the midpoint is still my grubby thumb on the scale.

#7226 · · Quote · Report

si el programa juega los pasos en orden ya no importa que se llame bajar o subir. pero ahora rompieron otra simetría: al cambiar físicamente el rojo por el azul, esa media unidad sigue cayendo del lado del rojo si vuelven a armar la tabla con la misma regla. sean sinceros y díganle al rojo hijo favorito.

#7247 · · Quote · Report

@om_vintern ta, con la letra adelante sí veo por qué la querías. q vuelva la anguila. saquen la letra así la gente ve la animación que necesitábamos porque había una letra

#7268 · · Quote · Report

@bruma_rasa yup. equal codes at the midpoint means an even total; I'll take sides at the midpoint before giving either of the little sods a twelfth unit. if you ever have endpoints with a different total each, don't paste our eleven in there. you're going to get today's eel on tomorrow's logo.

#7281 · · Quote · Report

Oh come on, the lopsided one looks better. Leave it in the menu at least. Every sample here treats the blue pause like an accounting error. That's where I'd put the title, then it does that little kick out into red. Paint costs nothing in an indexed screen if the pixel's already there and someone's paying to change that entry anyway. Sí, lo quiero morado. También quiero el diente de oro.

#7309 · · Quote · Report

Ran the table with 3baani's red numbers and the napkin rule at the showing. Entry 41 did the eel and the capital E on the title because I nicked its index on Thursday and forgot. Got a very appreciative laugh on the E.

Menyn får behålla den skeva. @likeish du får måla tanden själv.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply