def METHOD_NAME():
    # based on http://visitusers.org/index.php?title=Creating_a_color_table
    # continuous1 {
    # create control points (red, green, blue, position).
    ct = ((1,0,0,0.), (1,0.8,0.,0.166), (1,1,0,0.333), (0,1,0,0.5),
          (0,1,1,0.666), (0,0,1,0.8333), (0.8,0.1,1,1))
    ccpl = ColorControlPointList()
    # add the control points to the list 
    for pt in ct:
        p = ColorControlPoint()
        # colors is RGBA and must be in range 0...255
        p.colors = (pt[0] * 255, pt[1] * 255, pt[2] * 255, 255)
        p.position = pt[3]
        ccpl.AddControlPoints(p)
    AddColorTable("myrainbow", ccpl)
    OpenDatabase(silo_data_path("globe.silo"))
    AddPlot("Pseudocolor", "speed")
    # Make the plot use the new color table
    pc = PseudocolorAttributes(1)
    pc.colorTableName = "myrainbow"
    SetPlotOptions(pc)
    DrawPlots()
    v = GetView3D()
    v.viewNormal = (-0.693476, 0.212776, 0.688344)
    v. viewUp = (0.161927, 0.976983, -0.138864)
    SetView3D(v)
    # continuous1 }
    Test("rainbow_continuous")
    RemoveColorTable("myrainbow")
    DeleteAllPlots()