Signup Issues have been resolved (hopefully). If you have previously had issues signing up for the forum, please try again.
0 Members and 2 Guests are viewing this topic.
//############################################################################int train(LaserBoy_frame* p_frame){ int frame_count, vertex_count; LaserBoy_3D_short temp_position; LaserBoy_frame frame(*p_frame); LaserBoy_frame_set out(frame.p_space); //------------------------------------------------------------------------ out += frame; for(frame_count = 0; frame_count < frame.number_of_vertices(); frame_count++) { temp_position = frame.front(); for(vertex_count = 0; vertex_count < frame.number_of_vertices() - 1; vertex_count++) frame.at(vertex_count) = frame.at(vertex_count + 1).position(); frame.back() = temp_position; out += frame; } out.save_as_ild(LASERBOY_ILD_SHARE + "train.ild"); return LASERBOY_OK;}//############################################################################//..... //------------------------------------------------------------------------ frame_effects.push_back(train); frame_effect_names.push_back(string("train"));
Hey James, If we come up with a new effect, will you name it after us or put us in the laserboy credits?
int frame_count, vertex_count, colorindex=0; LaserBoy_3D_short temp_position; LaserBoy_frame frame(*p_frame); LaserBoy_frame_set out(frame.p_space); Laserboy_segment colorsource = target_color_fame; //copy the frame colorsource.minimize_blank_points(); out += frame; for(frame_count = 0; frame_count < target_path_frame.number_of_lit_vertices(); frame_count++) for (i=0; i<target_path_frame.number_of_points(); i++) { while (i < target_path_frame.number_of_points() && target_path_frame.at(i).is_blank()) i++; if (i >= target_path_frame.number_of_points()) break; target_path_frame.at(i) = (ez_color)colorsource.at(colorindex); target_path_frame.at(i).c = colorsource.at(colorindex++).c; if (colorindex == colorsource.number_of_points()) colorindex=0; } if (++colorindex == colorsource.number_of_points()) colorindex=0; out += frame; } out.save_as_ild(LASERBOY_ILD_SHARE + "LavaFLow.ild"); return LASERBOY_OK;
WOW!Check this out! Grin
You can't even come close to the kinds of functional constructs that you can make in C/C++. Let's not even talk about pointers and such.
Then make a GUI with it...