This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
nutcase84's profile picture

Black and White Pixel Manipulation for Normal Computers

Started by nutcase84, 04 March 2013 - 12:38 PM
nutcase84 #1
Posted 04 March 2013 - 01:38 PM
Why not have black and white pixel manipulation for normal computers? It seems like a good idea to me. We would be able to make somewhat alright UIs on normal computers.
theoriginalbit #2
Posted 04 March 2013 - 01:40 PM
Kinda like this? http://puu.sh/2bHQ2

some lovely code to detect


if not term.isColor then
  -- its a pre CC 1.4 computer
elseif term.isColor() then
  -- its an advanced computer
else
  -- its a normal computer
end

EDIT: Also no polls. It doesn't sway the decisions of the developers.

EDIT #2: Oh also you can do the black/white pixels on Turtles too.
nutcase84 #3
Posted 04 March 2013 - 01:46 PM
Yah, like that.

I like polls. They sway me.
immibis #4
Posted 04 March 2013 - 01:46 PM
Computers don't have pixel manipulation.
theoriginalbit #5
Posted 04 March 2013 - 01:48 PM
Yah, like that.
Oops I uploaded the wrong screenshot. this is a better one http://puu.sh/2bHZv now you can see that I actually did that ON a normal computer :P/>
nutcase84 #6
Posted 04 March 2013 - 01:49 PM
Um… have you ever used a adv. computer immibis? Or have you been playing with mag cards too much… (Also, I love your mod!)

EDIT: HOW DID YOU DO THAT TOB!?!?!?
theoriginalbit #7
Posted 04 March 2013 - 01:52 PM
EDIT: HOW DID YOU DO THAT TOB!?!?!?
You just do it with term.set<type>Color( <color> ) just like you do on advanced computers.


term.clear()
term.setCursorPos(1,1)
paintutils.drawPixel(1,1,colors.white)
paintutils.drawPixel(5,6,colors.white)
paintutils.drawPixel(4,9,colors.white)
paintutils.drawPixel(6,4,colors.white)
paintutils.drawPixel(4,2,colors.white)
paintutils.drawPixel(7,5,colors.white)
paintutils.drawPixel(15,9,colors.white)
paintutils.drawPixel(4,2,colors.white)

Lets MIX IT UP?! http://puu.sh/2bI9N

term.setBackgroundColor(colors.white)
term.clear()
term.setCursorPos(1,1)
paintutils.drawPixel(1,1,colors.black)
paintutils.drawPixel(5,6,colors.black)
paintutils.drawPixel(4,9,colors.black)
paintutils.drawPixel(6,4,colors.black)
paintutils.drawPixel(4,2,colors.black)
paintutils.drawPixel(7,5,colors.black)
paintutils.drawPixel(15,9,colors.black)
paintutils.drawPixel(4,2,colors.black)
nutcase84 #8
Posted 04 March 2013 - 01:54 PM
No… how did you do that on a normal computer?
theoriginalbit #9
Posted 04 March 2013 - 01:59 PM
No… how did you do that on a normal computer?
That was my exact code!

Further example
http://puu.sh/2bIih
nutcase84 #10
Posted 04 March 2013 - 02:04 PM
So there is already black and white pixel manipulation for norm. comuters already?

And what is that program in the background?
theoriginalbit #11
Posted 04 March 2013 - 02:09 PM
So there is already black and white pixel manipulation for norm. comuters already?
Yes there is already the ability to change the colour of the pixels on normal computers and turtles, they can only be black and white, but they can still be changed.

And what is that program in the background?
Sublime Text 2. with these installed:
nutcase84 #12
Posted 04 March 2013 - 02:10 PM
I feel like a dork. Thanks TOBIT. A mod can lock this post now.
Cranium #13
Posted 04 March 2013 - 04:28 PM
Locked as requested.