취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Rube Goldberg Code

My turn at creating a RG code...

 

That's what happens when you try to do something quickly..

 

original code:

 

improved:

 

 

Yes... yes, I am aware of the coersion dots...  😛

 

 

1141/2,635 메시지
13,433 조회수

Well, it could be simplified further - you're taking the 1D array of RGB values and then turning it into 3 2D arrays of RGB values and then making that into a 3D array.

 

So you could move the build array to be after the decimate and then do the reshape in a loop.

 

Or you could use the picture VI which converts a flattened pixmap to a 2D U32 array and then use split number on that array to extract the RGB arrays.


___________________
Try to take over the world!
1142/2,635 메시지
13,407 조회수

Some code can only be described as tapeworms: ugly, unwanted, and hard to get rid of.

 

 

 

(Seen here)

 

0 포인트
1143/2,635 메시지
13,319 조회수

Generating a regularly patterned 3D array, then slicing out one of the planes in a given orientation may need a multiscreen sized diagram, case structures with the same property node on all cases, shift registers, empty arrays, intermediary array of 1, 2, 3 dimensions, stacked loops, etc.

 

 

(note that the above picture is scaled to 50% of the actual size!).

Or it could all be done with some simple postcard sized code. 😄

 

 

(seen here)

(more details)

모두 다운로드
1144/2,635 메시지
13,116 조회수

Hi,

      I think. when I code some times,no need to purposefully make it as a Rube Goldberg Code,it will naturally turn to a Rube Goldberg Code윙크 이모티콘Anyway I think Rube Goldberg Code will disappears gradually as experience build up...

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 포인트
1145/2,635 메시지
13,082 조회수

@danil33 wrote:

Hi,

      I think. when I code some times,no need to purposefully make it as a Rube Goldberg Code,it will naturally turn to a Rube Goldberg Code윙크 이모티콘Anyway I think Rube Goldberg Code will disappears gradually as experience build up...


Either that or you just find more and more nitty-gritty things to optimise.

0 포인트
1146/2,635 메시지
13,043 조회수

Example_VI_BD.png

 

Same thing

 

Example_VI_BD.png

 

 

=====================
LabVIEW 2012


0 포인트
1147/2,635 메시지
12,981 조회수

Same can be easily represented as:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 포인트
1148/2,635 메시지
12,902 조회수

In the above code just take few number of bytes and reversing it inside an array.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 포인트
1149/2,635 메시지
12,901 조회수

In the above RGC,If the array size is getting bigger and bigger then definitely the first one will become a Rube Goldberg one.매우 기쁨 이모티콘

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 포인트
1150/2,635 메시지
12,893 조회수