Fill machine with hot water. Use enough for your cloth to move freely.
Add dye in proportions indicated on the package.
Wet fabric in hot water.
Smooth out the wrinkles and place it in the dye bath.
Set your washing machine for it’s longest wash cycle. Fabric should be in dye bath for at least half an hour before rinse begins. You can reset the machine before it gets to the rinse cycle if necessary.
Rinse the dye away with cold water until water runs clear. Wash darker colors in warm water and rinse thoroughly in cool water.
Dry the pants either in the dryer or on the clothes line.
Clean the residual dye out of your machine using the highest water level, hot water, and a cup or so of bleach.