zenspider
2017-6-12 19:57:11

what was yesterday’s drracket logo about?


samth
2017-6-12 19:58:15

@zenspider what did it look like?


notjack
2017-6-12 19:58:31

Turtle with red and blue shell



zenspider
2017-6-12 20:00:10

nice


zenspider
2017-6-12 20:00:11

thanks


ben
2017-6-12 20:39:50

lol, I thought June 11 was just an important day for #lang honu https://www.cs.utah.edu/~rafkind/papers/honu-2012.pdf


mrm
2017-6-12 22:37:15

I’m not quite understanding the documentation on this http://docs.racket-lang.org/draw/bitmap_.html


mrm
2017-6-12 22:37:45

How do I set individual pixels to be a certain color in a bitmap?


lexi.lambda
2017-6-12 22:40:11

@mrm: set-argb-pixels, I think


mrm
2017-6-12 22:41:48

What’s the ‘pixels’ argument?



mrm
2017-6-12 22:45:43

I saw the documentation for it. I don’t understand what it’s saying.


jaz
2017-6-12 22:46:44

four consecutive bytes represent a single pixel: (alpha, red, green, blue)


lexi.lambda
2017-6-12 22:46:50

if you want to set a single pixel, pass 1 for width and height, and provide a 4-byte byte array


mrm
2017-6-12 22:47:58

Ah good, width and height you color a grid of pixels at the same time?


mrm
2017-6-12 22:48:11

@jaz Thanks


jaz
2017-6-12 22:48:45

you can set a block of pixels all at once, yes, starting at (x, y)


mrm
2017-6-12 22:49:29

The coordinates are from the upper left corner, right?


lexi.lambda
2017-6-12 22:49:57

yes


jaz
2017-6-12 22:49:58

says “The pixels are in row-major order, left to right then top to bottom.”


jaz
2017-6-12 22:50:01

so yep


mrm
2017-6-12 22:50:44

Thanks.


mrm
2017-6-12 22:56:16

I wrote a quick and dirty thing with pict a couple weeks ago to provide visualizations of some experimental math thing for some colleges, and now they kind of are depending on them a bit more regularly, so I’m trying to make it more efficient. I haven’t done much with graphics or pictures prior to this, so all the stuff about alphas and back-channels and whatnot was making it kind of hard to parse.


mrm
2017-6-12 22:57:13

(context)


mrm
2017-6-12 22:57:33

Anyways, thanks for the help :slightly_smiling_face:


apg
2017-6-12 23:25:49

@zenspider is there a place to view all of the custom logos? I didn’t know Dr Racket logos on different days was a thing. Though I don’t spin it up all that often.


apg
2017-6-12 23:25:49

reply_broadcast messages not yet supported


zenspider
2017-6-12 23:58:28

no clue


zenspider
2017-6-13 00:01:38

search for the-bitmap-spec in the racket source


zenspider
2017-6-13 00:02:48

drracket/drracket/private/honu-logo.rkt etc


apg
2017-6-13 06:21:19

Ah. Of course it wouldn’t just be a set of png files… :upside_down_face: