CoolCat467
8878f095fb
Basically only imortant from #408
...
Leave blackSqare and step counters alone, but make it be able to handle textures where width and height are not the same so no more invalid color error.
For example, with original code, materials.newDebugTexture(8, 16, 40) has odd color because when it gets to pixel (1, 9), color value is (15, 9, -2) in RGB. After color.RGBToInteger inside color.HSBToInteger, integer value for color would be -2. The reason it's not apparent is likely from optimization of colors from palette, turning -2 into 65535 or (0, 255, 255), instead of an invalid color.
This has the effect of screwing up the colors for the image
If steps are swapped as this proposes, this issue is fixed and the colors wouldn't go crazy.
2022-01-08 09:12:03 -06:00
IgorTimofeev
ae6c876d82
Revert "Merge pull request #408 from CoolCat467/patch-1"
...
This reverts commit d56f4f0b2348cdfd8c0bec6bbc480fd4c6677d04, reversing
changes made to 2af4200a57e8548321f3bdda9adb390e5fcd732b.
2022-01-08 19:16:34 +07:00
CoolCat467
299acd9a91
Fix materials.newDebugTexture and simplify
...
I was testing a copy of this in Python, and noticed that bStep and sStep appear to be swapped, as bStep changed b up by 1/height, but the loop is by width, leading b to exceed 1 if the height is smaller than width. This is only apparent if the width and height of the new debug texture is not the same. And then I also noticed that the whole "invert blackSquare in two places" part could be simplified to if x + y is an odd number for each pixel in the texture. I don't claim to know the specifics of how to make lua faster, and this may be slower, so whatever is better.
2022-01-07 22:46:43 -06:00
IgorTimofeev
66fb55d6c2
ММММ ШО ЕТО ЕБАТЬ? ПОБЫСТРЕЕ ДЕЛИТСЯ, ЗНАЧИТ? ЛАААДНО
2021-10-04 21:17:33 +07:00
Yip Rui Fung
32c5835516
Use HTTPS for pastebin upload
...
Pastebin apparently requires HTTPS now, using HTTP just fails.
2021-09-14 01:30:08 +08:00
IgorTimofeev
ae18379ca8
Added OCIF8 image format support & fixed HEX editor app
2021-09-04 19:44:52 +07:00
IgorTimofeev
b50fbd9703
New application in /Applications/ dir fix
2021-08-27 20:09:55 +07:00
IgorTimofeev
25289c43d2
Блядь, да как затрахал этот опенсурс
2021-08-25 03:56:12 +07:00
Bs0Dd
10a87305c0
Now Viewer is a standard for images
2021-08-25 00:30:18 +06:00
Bs0Dd
2ec542b422
Added polygons rasterization and function for Picture Edit
2021-08-23 13:39:10 +06:00
InsideBSITheSecond
f10060831d
Fix crash caused by graph's axis values above 1000
...
just renamed the function "number" parameter to avoid indexing it
2021-08-16 21:08:34 +02:00
IgorTimofeev
1ad42669e8
Шо у нас тут
2021-07-17 20:27:43 +07:00
IgorTimofeev
46cc61947e
No sense for applying convolution matrix for foreground pixels. Maybe only for semi-pixels... meh
2021-07-16 19:26:27 +07:00
IgorTimofeev
320489abe7
Image lib convolution filter support
2021-07-16 19:21:22 +07:00
IgorTimofeev
2287ab1a08
Ебучая свертка
2021-07-16 18:05:34 +07:00
IgorTimofeev
77d395c40e
Так, блядь
2021-07-16 17:59:18 +07:00
Bs0Dd
71dfb3c857
Big update for Image API and Picture Edit
2021-07-16 15:18:19 +06:00
IgorTimofeev
e992ebe8f4
Fixed window:focus issue
2021-07-15 14:01:50 +07:00
IgorTimofeev
43e3bd75dc
Interface blurring option
2021-07-13 00:12:04 +07:00
IgorTimofeev
55452b840b
Better blurring & faster tmp fs boot time getting
2021-07-12 23:25:54 +07:00
IgorTimofeev
f51681be20
Added blur method to screen library & added GUI.blurredPanel widget #2
2021-07-12 12:22:17 +07:00
IgorTimofeev
bf2e7f90ff
Added blur method to screen library & added GUI.blurredPanel widget
2021-07-12 11:22:57 +07:00
Smok1e
83d4d326e4
Фёдор черемисенов был тут!
...
GUI.input reaction on HOME and END keys
2021-07-11 21:03:58 +03:00
IgorTimofeev
b77df265c3
Merge branch 'master' of https://github.com/IgorTimofeev/MineOS
2021-07-11 22:16:58 +07:00
IgorTimofeev
c7540ab550
Huge performance improvement for screen library (rects/images)
2021-07-11 22:16:55 +07:00
IgorTimofeev
c8a4f6136e
Update GUI.lua
2021-07-10 15:47:02 +07:00
IgorTimofeev
539efea597
Update GUI.lua
2021-07-10 15:45:39 +07:00
Smok1e
898ea448d0
Horisontal slider reacting on scroll
...
Добавил реагирование горизонтальных слайдеров на скроллинг
2021-07-10 01:27:20 +03:00
IgorTimofeev
50023e375d
Meow
2021-07-10 01:49:46 +07:00
IgorTimofeev
280ac05ec6
New focusing system
2021-07-08 12:53:29 +03:00
IgorTimofeev
590f10615c
эбалъ рот етого нейминга
2021-07-07 18:06:19 +03:00
IgorTimofeev
e7723e504a
Added global print() function & simple console application for output
2021-07-07 17:30:29 +03:00
IgorTimofeev
fe43dacde5
Hmmmm
2021-07-02 15:04:36 +03:00
Thomas
c8609c9f64
fix remote write error (better)
2021-06-30 20:03:27 +03:00
Thomas
4ca164d00e
fix remote write error
...
Fixed error when trying to write file on remote machine on minecraft versions 1.11+. OC devs removed modem.maxPacketSize() method, so, we need to check if it present.
2021-06-30 00:49:03 +03:00
IgorTimofeev
0c36111198
Update Network.lua
2021-04-13 19:01:03 +03:00
Minecraftku_hei
ddb3fd2846
Update Network.lua
2021-04-13 22:42:55 +08:00
IgorTimofeev
70dd5a9d03
Спосеба Bs0Dd'у
2021-03-31 02:13:36 +03:00
IgorTimofeev
068e98ce59
Сук, ну и напряжёнка
2021-03-25 17:42:27 +03:00
IgorTimofeev
87dcf11740
Fixed OCIF5 saving
2021-03-25 02:16:48 +03:00
IgorTimofeev
bc50f9c31a
Fixes invalid buffer indexing in rawSemiPixelRectangle() method
2021-02-15 20:08:25 +03:00
Gas_Infinity
2bbc933ac4
Update Keyboard.lua
2020-09-27 14:39:00 +02:00
Gas_Infinity
956b7504c0
Update Keyboard.lua
2020-09-27 14:36:55 +02:00
Gas_Infinity
441d4371eb
Swap Left and Right
...
Yea, im dumb
2020-09-27 14:35:52 +02:00
Gas_Infinity
389d985dca
Enum Keyboard Constants
...
Added basic keyboard constants e.g:
if keyboard.isKeyDown(keyboard.A) then
GUI.alert("A Pressed")
end
2020-09-27 14:31:33 +02:00
IgorTimofeev
581224b153
Korean
2020-03-22 20:45:30 +03:00
IgorTimofeev
3ca4f95f19
GUI bugfixes & Internet library "method" parameter
2020-03-09 12:21:51 +03:00
IgorTimofeev
7fb9198d02
хуй
2020-03-07 12:39:36 +03:00
IgorTimofeev
fceb99ff75
Fixed user self-removing in settings app
2020-01-10 17:49:48 +03:00
IgorTimofeev
8b48a4ab4e
Fixed interruption issue
2020-01-10 17:38:02 +03:00